Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    1

    Question About Unix multiples socket


    Hi,

    I have question about the UNIX sockets.
    my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not.

    Do you have any suggestion or an example of code?

    Thank you in advance,

    Peace

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Location
    Harrisburg, PA, USA
    Posts
    56
    It is possible. You need to call 'connect' system call the number of times you would like to have connections to server. This will establish multiple connections to server unless your server is capable of handling multiple socket connections from the same client.

    Regards,
    Sumit

Posting Permissions

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