Skip to content

cert666/C-socket-using-boost.asio-TCP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-socket-using-boost.asio-TCP-Server

C++ socket using boost.asio: TCP Server

https://www.codeproject.com/Articles/1264257/Socket-Programming-in-Cplusplus-using-boost-asio-T

install boost library sudo apt-get install libboost-all-dev

install C++ compiler if needed sudo apt-get install g++

compile and run app for sync server $ g++ server.cpp -o server –lboost_system $ ./server
$ g++ client.cpp -o client –lboost_system $ ./client

compile and run app for async server $ g++ async_server.cpp -o async_server –lboost_system $ ./async_server
$ ./client

If error is returned when server starts "bind: Address already in use", kill any process which uses port 1234 "lsof -ti:1234 | xargs kill -9".

About

C++ socket using boost.asio: TCP Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published