Networks-Lab is a project mainly written in C, based on the GPL-3.0 license.
Networks lab codes of Jaseem Abid. Semester 5, NIT Calicut
Author : Jaseem Abid [email protected] License : GPL V3
gcc server.c -o server -pthread
gcc client.c -o client -pthread
./server <port number>
. Eg: ./server 8089
./client <server> <port>
. Eg: ./client localhost 8089
<userid> <Message>
. Eg: 1 hello world
Code tested on an ubuntu 10.04 LTS machine with gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
A message can be sent from peer to peer in the format '@@3 Hello world :)
Clients use a multi threaded approach to recieve and send messages the same time. A thread runs listening to the socket and one to stdin. This enables concurrent chat between multiple users.
If you have any questions, please feel free to ask me at [email protected]