Results 1 to 2 of 2

Thread: Single Port, Multiple winsock connections

  1. #1

    Thread Starter
    Member Cahlel's Avatar
    Join Date
    Aug 2000
    Location
    Earth (I think)
    Posts
    63

    Question

    Is it possible to have more than two connections over a single port using 1 or more winsock(s)?

    And if so, does it have to be TCP or UDP protocol
    Wisdom is supreme, therefore get wisdom,
    though it costs all you have, get understanding.
    Proverbs 4:7

  2. #2
    Member
    Join Date
    Oct 1999
    Location
    Fremont, Ca, 94538
    Posts
    40
    Yes, it's possible to have multiple connections on 1 port and it's TCP/IP. For less work, you can use Microsoft Winsock Component, which is very to use. Put it in project, put it in an array, and use based index to listen. ex:

    Winsock1(0).Listen

    In the connection request id event, load another instance of the winsock object and accept the socket ID.

    Load Winsock1(Winsock1.Ubound+1)
    Winsock1(Winsock1.Ubound).Accept RequestID

    Then you can communicate w/ multiple connections on 1 port.

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