ns_socketpair
ns_socketpair creates a pair of connected sockets and returns a list of file ids: the first one for reads and the second one for writes.