int roar_socket_listen(int type, char * host, int port);
DESCRIPTIONOpens a new listening socket for network clients to connect to. You may accept new connections via accept(2).
The type of the Socket. See the list below.
The host or path name to listen on.
This depends on the type argument.
For TCP/IP to listen on any interface use a value of "0.0.0.0".
The port number to listen on.
This may be ignored by types not supporting port numbers.
The type will be auto detected. Don't use this if you know the type. Only use this
to support user given addresses and enable auto detection.
Use a TCP/IP connection. This is standard mode for networking.
host is the hostname or IP to listen on and port is the port number to use.
Same as above but deprecated. Use ROAR_SOCKET_TYPE_TCP.
UNIX Domain Socket. This should be default for local connections.
host is the filename of the socket.
This is to fork a roard to communicate with. Can't be use to listen on, just to connect to.
host and port is ignored at the moment.
This is used to open a plain file. Can't be use to listen on, just to connect to.
host is the filename to connect to.
RETURN VALUEOn success these calls return filehandle. On error, -1 is returned.
BUGSListening on UDP sockets is not supported at the moment.