This is some rough work on implementing the socket API by Harlequin. It's all far from working. You're better off with accessing the POSIX API directly at the moment, this package contains some hints on how to do this.