First step would be creating TCP server; I'm a noob about TCP server programming so I've found online TCP server examples:
https://github.com/mafintosh/echo-serve ... o-server.c
But when compiling it's missing event.h:
Then I used /usr/lib/event.h, but here missing kqueue function.tcp-non-blocking-echo-server.c:10:23: fatal error: sys/event.h: No such file or directory
Where can I find running example of TCP server? Thanks.