Multi clients single server?
Ok i have created a person to person chat app. a person to person tictactoe, etc, etc! But now i want to make a winsock connection with several different people! Like there will be a single server! Which will be configured to help communication with other clients how to do that?
Re: Multi clients single server?
I have also needed to know this but thanks to winsockvb.com I was able to figure it out :).
Make your winsock connection an array (ie select it and hit ctrl c, then hit ctrl v)
VB Code:
Private Sub Server_ConnectionRequest(Index As Integer, ByVal requestID As Long)
Load Server(Server.UBound + 1)
Server(Server.UBound).Accept requestID
End Sub
But you'r going to have to be careful, becacause this is going to load a new one when a new client connects. But if only a few people are going to connect then you should be ok.
Re: Multi clients single server?