SYNOPSIS object SOCKETD->new( int type, mixed host, int port, closure cb, int opts) FILE /daemon/sockets.c DESCRIPTION create a new socket (user function)