????

For network I/O, most apps can just use sockets. And for an example of socket-level I/O (TCP), have a glance at kftp.c::ksock_rw() from the Hijack patches.

Simple, robust, and no weird stuff..

????