![]() |
| | #1 |
| Registered User Join Date: Aug 2006
Posts: 9
| Server and client in the same program If its not clear don't hesitate to ask. Thanks in advance. |
| smithx is offline | |
| | #2 |
| Malum in se Join Date: Apr 2007
Posts: 3,188
| yes, you want to have your program be teh server for one application, adn the client for another, this is entirely possible. You just set up 2 seperate sockets, one is a listenign socket and one is a connectign socket. Typically they are done is different threads, but they can be done in a single thread.
__________________ Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off. |
| abachler is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with client server program... | cprogczar | C Programming | 2 | 04-21-2009 07:56 PM |
| Chat Program Help? | Paul22000 | Networking/Device Communication | 9 | 02-10-2009 12:35 AM |
| c program client server | steve1_rm | Networking/Device Communication | 3 | 01-24-2008 10:33 AM |
| Where's the EPIPE signal? | marc.andrysco | Networking/Device Communication | 0 | 12-23-2006 08:04 PM |
| Server Client Messaging Program | X PaYnE X | Networking/Device Communication | 3 | 01-04-2004 05:20 PM |