General information
Category:
COM/DCOM and OLE Automation
I have a lot of reading to do. I never worked with winsock. While I am reading up on it, can you plase give a little example?
Let's say the server uses the pick a color dialog to select a color. How does the client app know that the server picked a color and how does the server pass the result to the client?
Regards,
Neil
>>How do you set up 2 vfp apps so that one is a server and one is a client.
>>How does the client application register itself with the server application so the server knows who to communicate with?
>
>You can create a VFP Client-and-Server app using the Winsock TCP controls.
>
>One VFP App acts as a server by instantiating a Winsock control and using it to listen on a given port.
>
>Another VFP App (as client) connects to the Server via its WinSock control and specifying the HostName and Port # of the Host.
>
>When the Server receives a connection request on its "listening port", it creates a connection to that Client by instantiating another Winsock control and "accepting" the connection request. Each connection would add another Winsock control (to an array, for example).
>
>The Client(s) and Server can now "talk" via .SendData() and .GetData()
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only