Results 1 to 3 of 3

Thread: Multi clients single server?

  1. #1

    Thread Starter
    Member RapchikProgrammer's Avatar
    Join Date
    Jul 2005
    Location
    Hyderabad, Pakistan
    Posts
    61

    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?

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    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:
    1. Private Sub Server_ConnectionRequest(Index As Integer, ByVal requestID As Long)
    2. Load Server(Server.UBound + 1)
    3. Server(Server.UBound).Accept requestID
    4. 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.

  3. #3

    Thread Starter
    Member RapchikProgrammer's Avatar
    Join Date
    Jul 2005
    Location
    Hyderabad, Pakistan
    Posts
    61

    Re: Multi clients single server?

    Thanx for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width