Skip to content

k0nze/tcp_client_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP Client Server Test in C

Adapted from: Suyash https://gist.github.com/suyash/2488ff6996c98a8ee3a84fe3198a6f85
Multiple client extension adapted from: GeeksforGeeks https://www.geeksforgeeks.org/socket-programming-in-cc-handling-multiple-clients-on-server-without-multi-threading/

Build

cd build
cmake ..
make client
make server

Run

1st Terminal:

cd build
./server

2nd Terminal:

cd build
./client

If you want to distinguish between multiple running clients you can specify a client ID as a command line argument like this:

cd build
./client CLIENT_ID

About

Simple TCP Client Server Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published