Walking in Light with Christ - Faith, Computing, Diary |
A tiny minimalistic CHAT Client Program writen in C Posted: 28 Jul 2012 01:45 PM PDT A friend of mine (Dido) who is learning C programming, has written a tiny chat server / client (peer to peer) program in C. His program is a very good learning curve for anyone desiring to learn basic C socket programming.
Here are links to the code of the Chat server/client progs: Tiny C Chat Server Client source code Tiny C Chat Client source code To Use the client/server compile on the server host tiny-chat-serer-client.c with:
Then on the client host compile the client;
On the server host tiny-chat-server should be ran with port as argument, e.g. ;
To chat with the person running tiny-chat-server the compiled server should be invoked with:
123.123.123.123 is the IP address of the host, where tiny-chat-server is executed. The programs are in a very basic stage, there are no condition checks for incorrectly passed arguments and with wrongly passed arguments it segfaults. Still for C beginners its useful … Related Posts |
You are subscribed to email updates from Walking in Light with Christ - Faith, Computing, Diary To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
0 Komentar
Penulisan markup di komentar