Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Client-Server Architecture...


OK, let's have the experts on this subject give their opinions:

How can I best implement a Client-Server Architecture in my application? My application is of course database-oriented.

Where do I put the different parts of code, onto which layers, and do I implement OOPS or not?

Also if you can tell about your own experiences with the Client-Server Architecture, that would be even better ...




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Client/server Architecture
scenerio: 10 users (total) small business app (order entry).

intention: VB6 client side, msde for the database. (in a previous thread it was suggested that MSaccess would be too limited)

my question is how does this all fit together?
can the client app use ado to connect directly to msde?
(2-tier, 3-tier)
and if there is a middle-tier, does that need to be on it's own physical machine, or can it share the same hardware as the SQLserver/msde
does SQLserver/msde require a dedicated machine?
and where does COM fit into all of this?

i've been trying to find some client/server App models but everything on the microsoft site (msdn) is .NET oriented and i have no desire to work with that.
were can i find some good resources for more classic solutions? (books, websites)

Barnes & Noble is a wonderful place!!!

Thanks in advance for all of your insights

TK

SQL Server 2000 Architecture
Hello,
I want to get knowledge about SQL Server 2000 architecture. Specaily focused on fileing structure etc.
Please refer website links.

Thanks

Winsock, I Made A Server-Client... Now I'm Trying To Make A Server-Client+++
Trying to get this Winsock Chat thing to support more than 1 person. I don't know at ALL what to do... Could anyone push me in the right direction?

Also, I need help getting screen names to work as well. Thanks.

As you will see, I attempted to add multiple connections myself... I failed. =[

I'm using VB6.

Code:Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const EM_LINESCROLL = &HB6
Dim ClientNum As Integer
Private Sub cmdSend_Click()
    Dim strdata As String
    strdata = "Server : " & txtmsg.Text
    tcpServer(0).SendData strdata
    Text1.Text = Text1.Text & strdata & vbCrLf
    txtmsg.Text = ""
    SendMessage Text1.hwnd, EM_LINESCROLL, 0, 10
End Sub

Private Sub Form_Load()
    Dim s As String
    s = InputBox("Server Port Number: ")
    tcpServer(0).Close
    tcpServer(0).LocalPort = s
    tcpServer(0).Listen
End Sub

Private Sub Form_Activate()
    txtmsg.SetFocus
End Sub

Private Sub tcpServer_ConnectionRequest(Index As Integer, ByVal requestID As Long)

    If Not tcpServer(0).State = sckConnected Then
        ClientNum = ClientNum + 1
        tcpServer(ClientNum).Close
        Load tcpServer(ClientNum)
        tcpServer(ClientNum).Accept requestID
        Text1.Text = "User has entered the server..." & vbCrLf
        SendMessage Text1.hwnd, EM_LINESCROLL, 0, 10
    End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    MsgBox "Wanna-Be AIM"
    tcpServer(0).Close
End Sub
Private Sub tcpServer_DataArrival(Index As Integer, ByVal bytesTotal As Long)
    Dim strdata As String

    tcpServer(0).GetData strdata
    Text1.Text = Text1.Text & strdata & vbCrLf
    SendMessage Text1.hwnd, EM_LINESCROLL, 0, 10
End Sub

Is Access Client Server?? What Is Client Server?
If I use visual basic to query an Access 97 database, this is what I find:

The SQL query only selects one number from a large table - ie the total info required is 4 bytes.

However, when I analyse the network traffic to my computer I find that 17,000 bytes get downloaded when running this query.

I am using ADODb connections and coding them manually in visual basic. I do not know if this is relevant, but my question is:

I thought using client server that all that went up the wire was the SQL statement and all that went down the wire was the resultant data.

Is this just Access? Does a query have a minimum package of 17,000 bytes? Anything I can do to make the performance better (as my application has to run over a 56K line)?

What about if I used SQL server?

Trouble Connecting From .NET 2.0 App On Win2000 Server Client To Remote SQL Server 2005 DB
Hi,

Has anyone experienced similar problems trying to connect under the stated configuration? Were you able to resolve?

This looks like some type of security or permissions issue on the client side but I don't know where to start looking. The login is correct and I don't have any issues when the client is XPSP2.

Additional info:

The Windows 2000 Server client is running SP4.
The 'Data Link' application used to configure the connection string from the client tests successfully.
Can't even connect as Administrator from the client.

Any guidance would be greatly appreciated.

Scott

Telnet Server, RF Client Bar Code Reader, Working With A VB Application Thin Client Application
> Hello To All,
>
> I need a little advice and direction.
>
> I trying to build and application where a RF (Radio Frequency 900mhz
> hand held Bar Code Reader) device would connect and enter and retrieve
> information from a VB application.
>
> Example of Screen:
> Updating Inventory:
>
> Invoice Number:_____________
>
> Part Number: _____________
>
> Quantity: _____________
>
> Press F2 to Save and Continue.
>
> How Do you build a Telnet or VT100 or VT220 Server application in VB
> that can create the Example and except the individual entries.
>
>
> The hand held device can connect to a server in Telnet (ANSI), but I
> just lost and can find anything solid on the web.
>
>
> Steven

Using Faxcomexlib To Create An XP Fax Client Using Windows 2003 Server As Fax Server
1) Can anyone help me clarify the syntax for computer name when the FaxServer and remoteFaxClient are deployed within a domain?

2) If item 1) above is not the problem then does anyone have suggestions on how to properly setup the Fax software (remote Fax Client and the Fax Server)?

The following code works fine for creating a local FAX Client on XP and Windows 2003 Server. However, I want to use the XP node as the Fax Client and the 2003 Server node as the FaxServer.

Whenever I try to use the XP node as the remote Fax Client ot the Windows 2003 Server FaxServer, I get the following error code:

Error -2147024894 (80070002)

This error occurs on the line where the faxjob is submitted. I get the same error on both fax sumissions (JOBID and sumbission without retrieving the JobID):
    'submit and get JovID
    JobID = objFaxDocument.ConnectedSubmit(objFaxServer)

    ' submit without retrieving the JobID
    'objFaxDocument.Submit (objFaxServer.ServerName)

I am wondering if I am using the correct name for the FaxServer. The computer name is "medserver" but the full name (path and computername) is "medserver.domain1.local". I tried using "\medserver", "//medserver", "\mdeserver.domain1", "\medserver.domeain1.local" and I still am not able to connect to the server and send the test fax. Using a blank name for the FaxServer "" or using the local computer name while running the Fax Client VB routine local to the Server works just fine. I get through the connection call but I get the 80070002 error when I submit the fax from a remote Fax Client to the FaxServer.

============================================

Private Sub cmd_SendFaxComEx_Click()
    Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
    Dim objFaxServer As New FAXCOMEXLib.FaxServer
    Dim objSender As FaxSender
    Dim JobID As Variant
    
    strFaxNumber = Me.txt_toFaxNumber.Text 'Any valid faxphone#
    'strFileName ="C:Program DATA FilesVB TestsFax ClientHello World.doc"
    strFileName = Me.txt_attachment.Text 'Any valid text/fax file
    strFaxMachine = Me.txt_FaxServerName.Text 'FaxMachine Name = "\FaxServer"
    
    'Error handling
    On Error GoTo Error_Handler
    
    'Connect to the fax server
    objFaxServer.Connect strFaxMachine '"" for default
    
    'Set the fax body
    objFaxDocument.Body = strFileName '"c: empmsg.txt"
    
    'Name the document
    objFaxDocument.DocumentName = "TMR Test Fax"
    
    'Set the fax priority
    'objFaxDocument.Priority = fptHIGH
    
    'Add the recipient with the fax number 12225550100
    'objFaxDocument.Recipients.Add "12225550100", "Bud"
    objFaxDocument.Recipients.Add strFaxNumber, Me.txt_RecipientName
    
    'Choose to attach the fax to the fax receipt; set to false for no attachment
    objFaxDocument.AttachFaxToReceipt = True
    
    'Set the cover page type and the path to the cover page
    'objFaxDocument.CoverPageType = fcptSERVER
    'set objFaxDocument.Coverpage = fcptNONE for no coverpage
    objFaxDocument.CoverPage = "generic"
    
    'Provide the cover page note
    objFaxDocument.Note = "Here is the info you requested"
    
    'Provide the address for the fax receipt
    objFaxDocument.ReceiptAddress = "someone@example.com"
    
    'Set the receipt type to email
    'objFaxDocument.ReceiptType = frtMAIL
    
    'Specify that the fax is to be sent at a particular time
    'objFaxDocument.ScheduleType = fstSPECIFIC_TIME
    'CDate converts the time to the Date data type
    'objFaxDocument.ScheduleTime = CDate("4:35:47 PM")
    
    objFaxDocument.Subject = "Today's fax"
    
    'Set the sender properties. For the EMR this will be the Dr. Office Info.
    objFaxDocument.Sender.Title = "Dr"
    objFaxDocument.Sender.Name = "TMR"
    objFaxDocument.Sender.City = "Phoenix"
    objFaxDocument.Sender.State = "AZ"
    objFaxDocument.Sender.Company = "TMR"
    objFaxDocument.Sender.Country = "USA"
    objFaxDocument.Sender.Email = "Dr@TMR.com"
    objFaxDocument.Sender.FaxNumber = strFaxNumber
    objFaxDocument.Sender.HomePhone = "1-602-555-5555"
    objFaxDocument.Sender.OfficeLocation = "Downtown"
    objFaxDocument.Sender.OfficePhone = "1-602-555-5553"
    objFaxDocument.Sender.StreetAddress = "123 Main Street"
    objFaxDocument.Sender.Tsid = "Office fax machine"
    objFaxDocument.Sender.ZipCode = "12345"
    objFaxDocument.Sender.BillingCode = "23A54"
    objFaxDocument.Sender.Department = "TMR EMR"
    
    'Save sender information as default
    objFaxDocument.Sender.SaveDefaultSender
    
    'Submit the document to the connected fax server and get back the job ID.
    JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
    
    'Use the following line to submit the fax document w/o getting a job ID.
    'objFaxDocument.Submit (objFaxServer.ServerName)
    
    MsgBox "The Job ID is :" & JobID(0)
    'Exit Sub
    objFaxServer.Disconnect
    
Error_Handler:
        'Implement error handling at the end of your subroutine. This implementation is for demonstration purposes
        'MsgBox "Error number: " & Hex(Err.Number) & ", " & Err.Description
        objFaxServer.Disconnect

End Sub

Retrieve A Picture Stored In .MDB Via A Server (Client/Server)!!!
Hi
I have made a quick search over here (in the forum) ending up with failure to find an answer to my question.
Well the problem is like this
(Client/Server Applicatoin)
Client will keyin a user name and password to connect to the server and retrieve his information including a (picutre) and the server will send the information including the picture which will appear to the client with the other information.

Now, I want to insert the picture into MS Access file .MDB along with the other information in a table (the picture will be of an OLE type, since this is the only way that I know we can include a picture), then be able to send to the client and display in the screen along with the rest of the information.

So, anyone can help, I failed to do so. I can transfer information (not including a picture). I know that we can achieve this goal by treating the picture as binary or so.... I am not sure actually about the concept. If anyone can help or can give me a piece of code that can assist me in this.

Server DLL, Under MTS, Running On Server, How To Msgbox To Client Machine???
Ok, I have a server DLL runniong under MTS on a serever. This server has msgbox's in it I know bad...how do I get these msgbox's to appear on the client machine, since the server is in another building
Don't give me grief about msgbox's and dll's...I know. It's not my code, nor my dll...I need a quick fix, can recode it at a later date.
All I need is for the msgbox's to appear on the client machine...
We are running NT Server 4.0

Anyone?

Woka

Retrieve A Picture Stored In .MDB Via A Server (Client/Server)!!!
Hi
I have made a quick search over here (in the forum) ending up with failure to find an answer to my question.
Well the problem is like this
(Client/Server Applicatoin)
Client will keyin a user name and password to connect to the server and retrieve his information including a (picutre) and the server will send the information including the picture which will appear to the client with the other information.

Now, I want to insert the picture into MS Access file .MDB along with the other information in a table (the picture will be of an OLE type, since this is the only way that I know we can include a picture), then be able to send to the client and display in the screen along with the rest of the information.

So, anyone can help, I failed to do so. I can transfer information (not including a picture). I know that we can achieve this goal by treating the picture as binary or so.... I am not sure actually about the concept. If anyone can help or can give me a piece of code that can assist me in this.



Edited by - sankhonio on 6/15/2003 1:02:32 PM

Winsock Query - Server To Client Messages Having Already Received Messages From Client
Hi,

I posted this onto VB Newbies but maybe it's a more intermediate query.

I have set up a client and server app so that many instances of client can connect to the server and send messages at the same time using Index=0 on the Winsock control on the Server.
However,

I want to send messages from server to client also - how can i do this since I get error message "Invalid operation in current state" when I try to connect from server to client - i need to get Winsock(0).State = connected and can't - do i need to name Winsock differently between 2 applications. I looked at www.winsockvb.com but can't find an answer to my problem.
My code on clicking command button on Server app is :

  Winsock(0).Close
  Winsock(0).RemoteHost = gstrIPAddress
  Winsock(0).RemotePort = Val(gstrPort)
  Winsock(0).Connect        'Seems like the connect isn't happening here - passes through it...

 gstrMessage = "Message to send"
If Winsock(0).State = sckConnected Then
    Winsock(0).SendData gstrMessage
    DoEvents
End If

Any guidance would be greatly appreciated!! Thanks!

Virtual Server - Client Server Problem
I have a client server application which has an SQL database on the back end, a data server EXE on the data server, a middle and client tier (DLL and EXE) on multiple workstations.

This is a VB6 application that has worked fine for several years. I made some modifications and tried to re-install it for my client and it turns out that the client is now using a virtual server (VMWare) to host the SQL database and my remote object on that server. And I am now unable to get around a Permission Denied error.

Has anyone run into similar issues when migrating to a virtual server environment? I just need a sanity check here before I dig much deeper.

Thanks.

medref

Client Server Application Using VB And SQL Server..
Hiii,
I have to develop a client server application using VB and SQL Server,I would use ADO.I have to make an online admission system where around 10 students can be given admission at a time for some specific college and course, after checking that whether seat is availabe in that college for that course or not.10 clients will access database(they can request to add,update,delete data) placed on a server.The whole database will be placed on server only.What are the major points I have to take care of for creating this application.Plz tell me that which cursor and lock type I'll have to use for:
1. Add record (by one or many users at different or at the same time)
2. Update same or different record(by one or many users at different or at the same time)
3. Delete record under same situation.
If A,B,C,D are users.Can the record can be viewed by any no. of users(clients) without any problem?But how to restrict other users(B,C,D) to update/add/delete a specific record if that record is being used by a user(A)?And processing should be fast without getting an error/corruption of database/data duplicacy/data redundany. what about transaction handling?
I have worked only on desktop application using VB and SQL Server..At what points this client server application will be different from desktop application??
Please help me in this regard..Its urgent for me.


thanx
mamta

Basic Client - Server App. What DB Would Use Use On The Server?
If you were distributing a client server app to your customers, what server side DB would you use?

I have only just found out about MSDE...yea, yea...I know, I've been hiding in a hole for years

Basically I have a client server app that uses SQL Server 2000. My customers had to buy SQL Server for my product to work. Admittedly they use it for other stuff to.
I cannot expect every custoemr to fork out shed loads of cash on SQL Server just to run my app.

What DB would people use?

MSDE?
Access?
Fox Pro?

Any others?

Woka

Client Server - SQL Server In IP Location
Hi All,
We have developed a client/server application with sql server database. When the Server is located in the network application is working fine.When the sql server is hosted in IP location the application becomes very slow. Can anyone help me in figuring out this problem. We have doubts in the way we are connecting to the server - Connection string. Would client/server applications perform well with IP based databases?.
Also give me suggestions that will increase the speed of accessing my application.
Thankz in advance.

Client/Server -> Browser/Server
Hi,
My manager currently told me to research how to turn my client/server program into a browser/server program. He speaks only in Chinese, so he can't explain it to me, because my chinese isn't that great. I'm really new to VB, but I think I've gotten pretty good at it lately. I have a very vague idea of the difference of CS and BS functions. But I have no clue what he wants me to do.

My program, basically it's a library management system. It reflects everything that the software that the company is working on does. You can check in books, check out books, add a title, check for late fines, add a library member.. etc. It connects to a SQL Server 2000 database which stores book titles, loan histories, pending penalties, etc. Right now, the database exists on the same computer as the client application. Not sure what to do next.. I think the manager said something about having one database for all clients, so that any update made by one client program will be seen by the other clients.

Any help on this topic is appreciated.

Server/client Tic Tac Toe
ok for some reason it gays, when you do liek an X at image1(8), it will show fine but then if you do and X at image1(7) or lower, it only shows up on 1 of the apps.. hmm lol

Server And Client
Attched here with serverclient.txt

I would make tcpserver form on our server computer
and TcpClient on other nodes
Basically there are 5 computers including one Sever which are connected to each other

Below the file is having the code using winsock control.
and the above two forms are in same project

I would like using the below code firstly with server and other 1 computer
as client.

Do i have to create client form in another project of another computer.

If yes, then using the above code can you help me

Regds

Subir

Server To Client
I'm making a text-based game(or MUD).
I have a look command shown below that I made. The only problem is I made it intended for the server side of the game except I don't know how I would send all this information to the client...I accidentally made it intended as a client. Here:


Code:
Public Sub Look(User As String)
CurRoom = CLng(ReadINI("General", "Room", App.Path & "/Users/" & User & ".ini"))
'Gets the Current room the user is in and stores it in CurRoom
RName = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & CurRoom & ".ini"))
'Gets the room name
DN = CLng(ReadINI("General", "North", App.Path & "/Rooms/" & CurRoom & ".ini"))
DS = CLng(ReadINI("General", "South", App.Path & "/Rooms/" & CurRoom & ".ini"))
DE = CLng(ReadINI("General", "East", App.Path & "/Rooms/" & CurRoom & ".ini"))
DW = CLng(ReadINI("General", "West", App.Path & "/Rooms/" & CurRoom & ".ini"))
DU = CLng(ReadINI("General", "Up", App.Path & "/Rooms/" & CurRoom & ".ini"))
DD = CLng(ReadINI("General", "Down", App.Path & "/Rooms/" & CurRoom & ".ini"))
'Takes the available rooms and stores the numbers in D(X) [X = Direction]
If DN <> 0 Then
DNname = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & DN & ".ini"))
If DS <> 0 Then
DSname = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & DS & ".ini"))
If DE <> 0 Then
DEname = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & DE & ".ini"))
If DW <> 0 Then
DWname = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & DW & ".ini"))
If DU <> 0 Then
DUname = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & DU & ".ini"))
If DD <> 0 Then
DDname = CLng(ReadINI("General", "Name", App.Path & "/Rooms/" & DD & ".ini"))
'Gets the names of each room next to the room you're in. (If there is one)
Des = CLng(ReadINI("General", "Description", App.Path & "/Rooms/" & CurRoom & ".ini"))
'Gets the Current Room's description.
OnFloor = CLng(ReadINI("General", "OnFloor", App.Path & "/Rooms/" & CurRoom & ".ini"))
'Gets the variables on the floor and stores them in OnFloor.
If OnFloor <> 0 Then
Floor() = Split(OnFloor, ",")
'Splits all the Items after OnFloor= and stores each of them in the array Floor(X)
Text1.Text = RName & vbCrLf & Des & vbCrLf & "You Can Go:" & vbCrLf
'Shows the Room name and description.
If DN <> 0 Then
Text1.Text = Text1.Text & DNname & vbCrLf
If DS <> 0 Then
Text1.Text = Text1.Text & DSname & vbCrLf
If DE <> 0 Then
Text1.Text = Text1.Text & DEname & vbCrLf
If DW <> 0 Then
Text1.Text = Text1.Text & DWname & vbCrLf
If DU <> 0 Then
Text1.Text = Text1.Text & DUname & vbCrLf
If DD <> 0 Then
Text1.Text = Text1.Text & DDname & vbCrLf
'Shows the directions you can go.
If OnFloor <> 0 Then
Text1.Text = Text1.Text & "On the ground you see:" & vbCrLf
Floor = Split(OnFloor, ",")
For X = 0 To UBound(Floor)
Text1.Text = Text1.Text & Floor(X) & vbCrLf
'Shows everything on the floor.
Next
End Sub

Can someone tell me how I am going to make it somehow store all of this is a string or two or three and send it using Winsock.SendData? Thanks.

Server For More Than One Client
Is there any function in Visual Basic equivalent of C's fork()? I want to implement in Visual Basic a server using socket (WinSock), but I don't know how to inplement a server for more than one clients. Can anybody help me?
Thanks.

Server And Client In One
i am making a program and i want to have a chat in it. but so there is no need for a seprate server i would like a chat system that works as a server (listens on a port) and a client (used for ther chating)


example:

guy 1
and
Guy 2 want to talk

Guy1 types "hello" and clicks 'go'

Guy2's server part(because the program's server recieves and the client sends) recieves it.

Guy2 types "hi" and clicks 'go'

Guy1's server part recieves it.



can some 1 give me the code for this or an example file

Server/Client
Hey guys...round (lost count, think 4 or so) haha

Ok, Heres the setup...keep in mind the game of Risk and Battleship.

What I have made so far is like the game Battleship, where you have a map with a grid overlayed over it. I am using an image for the background, and a transparent image() on top of it for use with the array. Anyway, what I am up to is making it connect to be a server/client type of a program.

What I want is for the program to be on two dif ppls comps, say Joe and Bob. The information that I want to save (whats in the array), I want to be on like sort.com.

How it works:
You start the program, then sign on. When you sign on, I need it to download the latest information to populate the grid to show what player owns what square (this part is kinda like risk). I also want it to detect which players are currently connected. Those that are connected, and are close enough to each other, I want to be able to "attack" each other. Again, just like Risk. The actual attacking will be using the game of StarCraft on Battle.net, and after the game, they come back to my program (which should be running in the background) and the winner clicks that they won, and the looser clicks that they lost. I realize that this will make ppl trust each other...but its for a group of ppl I know and play with.

Anyway, my question (after a 1000 word essay, sorry about that), is what direction should I go. Winsock? Something else? I could use a lil direction pointing.

Thanks guys,
Sort

Attached is a small example of what I have so far...this isnt the finished version. Left that at work. &lt;kickdirt&gt;

quos deus vult peredere prius dementat

Client/Server Help
Hi,

I have a client/server app. I have two way to install clients:

1. With a shorcut pointing to the server
2. Run app locally in client machine

I need to know if there are any way to know if my app is running from server or locally?


Thanks

Client-Server App ?
Hi,
I need to write a small information exchange application on a LAN. What category of programming does this fall into ? Is this what is called Client-Server Applications ? Is it possible to do it with Visual Basic ? How do I start off ? Thanks !

Client/server App
I know this is probably a very simple question, I am trying to write a client/server type app and am having trouble, I have written clientside apps before such as mail & telnet. but this is my first venture into the server side. This is the code I am working with...
Private Sub Form_Load()
Winsock1.Protocol = sckTCPProtocol
Winsock1.LocalPort = "8945"
Winsock1.Listen
End Sub

Private Sub Winsock1_Connect()
Text1 = Text1 & vbCrLf & Winsock1.RemoteHostIP & " connected"
End Sub

Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Accept requestID
End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strdata As String
Winsock1.GetData strdata, vbString
Text1 = strdata
End Sub


When the app launches it opens the port and listens, but when I try to connect to it remotely it does nothing. What am I doing wrong?

Thank you

SQL Server Client
Hi!. Does anybody knows a SQL Server Client Tool made in visual basic that generate scripts in SQL? Thanks everybody, I'm new in SQLServer and I'm a little lost.

Client/Server DB
Hi,

Currently I'm working on a project, using Access 2003 and VB6. Well, I had read some threads asking about client/server applications and answers about this. Some answers that I had read said that shall write the application in two pieces. Now my doubt is do I have to write two applications (client and software) or do I have to write the application in two modules?

What things or elements do I have to consider when creating a client/server application?

When writing the application, do I have to add some libraries?

Can I install the application and the DB on the server and from there create a shortcut on the client machines?


Thanks in advanced,
TRONPR

Client/server Help
can someone help me with this code ??


Code:
Dim wmplayer As Object
Dim CDROM
wmplayer = CreateObject("WMPlayer.OCX.7")
CDROM = wmplayer.cdromCollection
CDROM.Item(0).eject()
End Sub

i am a beginner at this

Client Server In Vb6
hey guys i was just wondering.. i am using Microsoft SQL Server 2000 as my database and i am working on a project where networking is involved using primarily a router, which means i only want one database and more than 1 computer has access to it.

I know that i should have a server with my database on it.. I was just wondering if I should still program it like I have seen in winsock applications and sample chat programs or can I just share the database and have the other computers access it?

I have tried doing that with Access and works fine but when I use SQL Server it won't work. Please help hehe thanks.

Client Server APP
CLIENT:


VB Code:
Private Sub cmdConnect_Click()winsock1.Connect "127.0.0.1", 1234cmdDisconnect.Enabled = TruecmdConnect.Enabled = FalseEnd Sub Private Sub cmdDisconnect_Click()winsock1.ClosecmdConnect.Enabled = TrueEnd Sub         Private Sub cmdMsgbox_Click()winsock1.SendData "msgbox"End Sub Private Sub Form_Load()cmdDisconnect.Enabled = FalseEnd Sub Private Sub winsock1_Connect()MsgBox "Connected"End Sub


SERVER:


VB Code:
Private Sub Form_Load()winsock1.LocalPort = 1234winsock1.ListenEnd Sub Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)winsock1.Closewinsock1.Accept requestIDEnd Sub Private Sub winsock1_DataArrival(ByVal bytesTotal As Long)winsock1.GetData GotDatDoActions (GotDat)End Sub  Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)Debug.Print Number, DescriptionEnd Sub


MODULE FOR SERVER:

VB Code:
Public Function DoActions(X As String)Select Case XCase "msgbox"MsgBox "Heyah"End SelectEnd Function


It seems to connect.. But when I try to message the server, it comes up with

"Invalid operation at the current state"

Client / Server
ive got clients connecting to my server on a 2 minute timer

on socket states, should i make clients connect if the state is not conected? because at the moment im doing this on a 2 minute timer...


VB Code:
Case sckClosing, sckError            Client.Close            Client.Connect ip, 4287        Case sckError


but sometimes the clients do not connect to my server, is this becasue their socket state could be something else like sckConnecting ?

how would i change it so that it makes it connect if the socket is NOT connected

Client/server?
Hey guys, does anyone know where i can get a small winsock example on a client/server chat program where clients (who are connected to the server)can send messages to each other?

Client / Server
this is hard to explain but ill try my best.

using a game anti-cheat for example... how would the server decline the client from connecting if he doesnt have the anticheat installed? what stops the client from connecting?

is this possible? if so, short explanation in a nutshell?

im not expecting any replies because of the questions nature but if it's possible, how would such be accomplished in vb?

UDP Server/Client
Hey,

I know how to do TCP but now that I more clear on what Im looking for Im starting to think that UDP would be better for me, since its faster and uses less CPU. The other way my program loops to check for connection.

I know how to do this in TCP, I also want to get the IP of the person that is connecting to me. So what command(s) would I use to get the IP of the packet sender...

Help much appreciated THanks!

Client Server
What would the code be to tell if the host(server) is up or not? (API only if you can, because my project has no forms so I can't use components)

like:

Code:
If Host = NotRunning Then
' exit code here ...
End If

I know that's rediculously wrong but hopefully you get my point

Client And Server?
hi, i would like an example that would connect a client to the server. All i want is that the client to send text to the server using winsock. anyone have an easy example of this?

Client/server
I've using VB6 for almost 4 years. But eversince I have no program for what they called Client Server Application.

Kindly teach me where to start? I really want to learn C/S Apps but I don't know where to start.

Client - Server App: RDO Or ADO? ( VB6 )
I have an application which I originally wrote in JAVA which connects via the internet to an MySQL database.

I'm in the process of re-writing this in VB6.

I'm trying to determine which method to employ, RDO or ADO.

The application is a food-costing application that my client is installing in his five restaurants. As the company does not have their own intranet, a hack of sorts, is to locate the DB on a server and have the application(s) connect to it, thus all are using a common set of data for the restaurants.

Can anyone offer up some advice as to whether ADO or RDO is preferable/superior in such a situation?

Client/server
hello guys,
as my name says i am really dummy!

Please explain the following bit -

what is client/server application? please explain me with few examples?

Thanks

Client && Server
Hi, everyone,

I am making a app. which allows different computer end-users could use this app. and update its database. Those users are located at three different places and each place has few computers connecting with each other. I would like to use VB to complete this task.

I don't know which way is better to solve this problem out.
I am considering using one of the computer as the server. And all other computers connect to this sever and execute the application. Is that possible? I am not sure whether it is a problem when every user want to use this app. at the same time.

Any idea is appreciated!

Client - Server
How do u write a server to open or close ports ???

and then use a client to access the server????

if the code is short plz post it on this forum

Client And Server
Where can i find a Basic Client and Server using API's
i think thats what i need
so in otherwords i can use winsock without the ocx ?
anyone help ?

Server/Client Over LAN
I'm trying to design a server/client application over a LAN using TCP protocol. I tried it between two computers (192.168.0.1 and 192.168.0.2) and doesn't work. Does somebody knows how to design a good client/server application core?

Own FTP SERVER (not Client)
Ok i did a search around this place and i could not find a single location on how to make a FTP SERVER. I'm not looking for anything all to fancy. 1 user capacity, able to get the Drive tree, download/upload, etc. Does anyone know of any pages that may have this type if infromation on it? Or, could they try and send me the coding for this?

§tay |{ewl,
L0phtpDK

UDP Server/client
Whats the deal

I have a udp server that broadcasts a message to all computer on port 6491

all the client apps begin receiving the updates but then they start to fail. There is no order or pattern.

What could I be doing wrong

Client-server App
I'm trying to find a client-server application on the internet, as example for an application I'm trying to make. Among other things, I want to be able to start up a program from one system on another system through a TCP/IP network connection, but also synchronizing the systemtime.

Does any have an example for me, or know where I have to look for code.

Thanks,
Niels

Help!! Help ! VB COM Server --&gt; C++ COM Client
I am writing an application that uses both VB6 and C++. The tool is the COM object. I have no trouble making the following connection:
C++ (as server) --> VB6 (as client)
C++ (as server) --> C++ (as client)
VB6 (as server) --> VB6 (as client)

But then I just cannot do the VB6 as server-->C++ as client.
Even I use the MIDL compiler, the .idl file generated by VB cannot give me the .h file for my C++ client. How would I read the VB generated .dll or tlb files from C++ ???? HELP Please !!!

Client-server
Friends

I develop systems using VB, DAO and .MDB database files.
I need to start a project using client-server structure.



1-) Where, in the new project, I set it up as a cliente-server projext ?

2-) Is possible to install MS SQLserver in my stand-alone XP prof.computer to develop the software on it ?
( if not, how can I simulate a client-server environament in astand alone machine ? )

3-) Is it a hardwork to convert a DAO+MDB aplication to a client-serveraplication ?

Thanx a lot !


Alviro

Copyright © 2005-08 www.BigResource.com, All rights reserved