Peer to Peer Socket C
1.0.0
This program involves a peer which can send and receive simultaneously, created using Socket programming in C. Multiple instances of the code can be run in seperate terminal environments to form a peer to peer chat network.
Limitations
Simultaneous send and receive
The program achieves simultaneous send and receive by running the receive method on seperate thread. The program involves the use of select() system call to identify the ready file descriptors and loop over them to receive the messages in queue. However, this simultaneous send and receive is not refined and may interrupt the user while sending the message.
Running instructions
The program was executed on a Linux system using the gcc compiler.
gcc peer.c -o peer1
gcc peer.c -o peer2
./peer1
./peer2