Some servers with using topics learned:
1. Echo server | Simple echo server |
2. Messenger with Select |
Messenger with multiplexing using select function |
3. Messenger with Poll |
Messenger with multiplexing using poll function |
- class
EchoServer
with:init()
: set up listening socketrun()
: accept and process clients one by one
- class
MessengerServer
with:init()
: set up listening socketrun()
:select
for read and write, accepting connections, recieving messages and sending them to other clients
- namespace
Utils
with:- some
Network
utils (readableip:port
, set upnon-blocking
option to socket...) - simple
Logger
Time
utils for logger (to get timestamp)
- some
Same as previous but optimized for poll
function
- UDP Lite
- Local Descriptor Tables
- Improved
select
usage Poll
usage