A socket based server written in swift that exemplifies the use of kqueue
/kevent
on sockets, signals, and file system changes.
If you want to check the article associated with this code check:
https://rderik.com/blog/using-kernel-queues-kqueue-notifications-in-swift