net.nim: add support for Unix sockets

This commit is contained in:
Michał Zieliński 2015-10-28 19:55:04 +01:00
commit da308be2d7
5 changed files with 57 additions and 2 deletions

View file

@ -0,0 +1,6 @@
import net
let sock = newSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
sock.connectUnix("sock")
sock.send("hello\n")