954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Multi sockets in C

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?

Hannahlv
Light Poster
31 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Obviously, you can't establish peer-to-peer connection between independent client processes from your server application.

ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You