|
-
Jul 24th, 2005, 09:05 AM
#1
Thread Starter
Member
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?
-
Jul 24th, 2005, 03:00 PM
#2
Fanatic Member
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.
-
Jul 26th, 2005, 11:35 AM
#3
Thread Starter
Member
Re: Multi clients single server?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|