Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 713 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 713 Bytes

Socket-Programming

This repository includes the source code files for setting up a chat server & proxy server.

Chat-Server


Compile the code for SERVER and CLIENT as two separate programs with the argument -lpthread

Example :
gcc -o server chat_server.c -lpthread
gcc -o client chat_client.c -lpthread

and then execute in the order
    ./server <port no>
    ./client <server ip> <port no>

Proxy-Server


Compile the code

Example :
gcc -o proxy proxy_server.c

and then execute by
    ./proxy <port no>