thinkty/tcp
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
A simple TCP server template for Linux made following the Beej's guide to network programming.
The code is a simple echo server by default.
Usage: ./server <handler> -n <port number>
handler:
-p pool_size : use a thread pool of specified size to handle new requests
-t : handle new connection in a new thread
-c : handle new connection in a child process
@see https://beej.us/guide/bgnet/