943,625 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 868
  • C RSS
Sep 8th, 2008
0

Multi sockets in C

Expand Post »
Hello everyone,
I don't know what is the exact name to call this, so I call based on what I want to do in my program. Its operation got something similar to chat server and client.
I have server and client application. Firstly, when one client connects to server and request a file from database, server then will check the database, to see whether any client who has the requested file is online. If he is online, server will send IP address of both clients to each other, and connection between them establish.
I can create connection between server and client, but don't know whether can establish another connection between client and client in the same program or not. Using socket, if can, what do I need to use?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Hannahlv is offline Offline
31 posts
since Jul 2008
Sep 9th, 2008
0

Re: Multi sockets in C

Obviously, you can't establish peer-to-peer connection between independent client processes from your server application.
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: sortied list
Next Thread in C Forum Timeline: Reverse a string





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC