Skip to content

Sample codes for Linux network programming based on socket and I/O multiplexing in C++11, revealing the essence of computer network communication through packet capture.

License

Notifications You must be signed in to change notification settings

downdemo/Linux-Network-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supported Platforms Build Status GitHub license

Documentation

Build and Run

  • build
git clone git@github.com:downdemo/Linux-Network-Programming.git
cd Linux-Network-Programming
make
  • Service would be generated in build directory
cd build
  • Run server before client
  • One running server at most because samples use the same port 12345
  • Ctrl + c to interrupt blocking server and client process
  • Run server
./udp_server
  • Run client in another shell
./udp_client
  • Run server
./socket_server
  • Run client
./socket_client
  • Run server
./fork_server
  • Run client multiple times
./fork_client
./fork_client
./fork_client
./fork_client
./fork_client
  • Run any I/O multiplexing server, such as epoll_server
./epoll_server
  • Run multiple I/O multiplexing clients
./select_client
./select_client
./poll_client
./poll_client
./epoll_client
./epoll_client

About

Sample codes for Linux network programming based on socket and I/O multiplexing in C++11, revealing the essence of computer network communication through packet capture.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published