Winsock - create new thread and assign a port number

Discussion in 'C' started by Rakish, Sep 6, 2006.

  1. Rakish

    Rakish New Member

    Joined:
    Jun 30, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    Hello all,

    I have a clientA program that connects to the server.

    What i need is to create a thread in the clientA call it clientB which has a different port.

    The clientA sends the IP address and Port number of the clientB to the server, and the server sends the Message "Hello" to the clientB and not ClientA.

    First of all i dont know how to create a thread and how to assign a port to a thread.

    Please help,

    Its very urgent...

    Thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  3. sudu

    sudu New Member

    Joined:
    Sep 1, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice