Multi sockets in C

Reply

Join Date: Jul 2008
Posts: 30
Reputation: Hannahlv is an unknown quantity at this point 
Solved Threads: 0
Hannahlv Hannahlv is offline Offline
Light Poster

Multi sockets in C

 
0
  #1
Sep 8th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: Multi sockets in C

 
0
  #2
Sep 9th, 2008
Obviously, you can't establish peer-to-peer connection between independent client processes from your server application.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC