Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 506 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 506 Bytes

Example TCP server that uses kqueue(2)

This is a bare minimum TCP server that can be used to learn how kqueue(2) works. The code contains comments on what each section of code does.

Run

make

./tcpserver_kqueue

Now connect to the server at port 1815. For instance, using netcat:

nc -v localhost 1815