![]() |
|
#1
|
|||
|
|||
[Program/Tutorial] Sockets to send messages[Name] none
[Description] Example of creating a server and client for a simple message relay [Date of Submit] July 27, 2005 [Submitter] L7Sqr [License] none - free to use/copy/modify [Detail] - [Problems/Limitations] Files are compressed with 'tar -czv' and can be uncompressed with 'tar -xzvf socket.tar.gz' (the v is optional). A makefile is included. Program compiles with -ansi flag (no errors) although that flag is not included in the make. System specifics can be found in the file headers. Designed on a Linux system. Must be able to create /tmp/sample_chat.d as-is, but that can be modified pre-compile NOTE: Due to extension reasons, the file has been renamed socket.zip...But IT IS NOT A ZIP FORMAT!!! Included files ipc_server.c: Uses the following functions: CPP / C++ / C Code:
ipc_client.c: Uses the following functions: CPP / C++ / C Code:
sample_ipc.h: Containes the following (all of which can be 'tweaked') CPP / C++ / C Code:
makefile: Compiles using the following CPP / C++ / C Code:
Use Open two consoles. In the directory containing the executables run ./server in one and ./client in the other. Sample output: Console #1: (client) CPP / C++ / C Code:
CPP / C++ / C Code:
|
|||
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| windows sockets confusion | ubergeek | C++ Forum | 1 | 18-Jul-2005 21:44 |
| I can not view my private messages and my signature...is this normal? | metamorph | GIDForums™ | 3 | 26-Feb-2004 05:41 |
| send email via local intranet | skyloon | MySQL / PHP Forum | 1 | 30-Jun-2003 08:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The