| | |
Multi sockets in C
![]() |
•
•
Join Date: Jul 2008
Posts: 30
Reputation:
Solved Threads: 0
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?
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
- Starting " C " (C)
- Winsock Multi-Client Servers (C++)
- Sockets, slots - processors (Windows NT / 2000 / XP)
- Create Socket server and client? (C++)
- UDP File Transfer Question (Java)
- Help with multithread server (C)
- Multi-user program issues (VB.NET)
- Multi-threading with C++.NET (C++)
- Can't remove "about:blank" homepage. Please help. (Viruses, Spyware and other Nasties)
Other Threads in the C Forum
- Previous Thread: sortied list
- Next Thread: Reverse a string
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches initialization intmain() iso km license linked linkedlist linux linuxsegmentationfault list logical_drives looping loopinsideloop. lowest match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






