s = xconnect ("ipc://127.0.0.1:8080"); assert (s >= 0);
xconnect - create a connector xio socket
#include <xio/socket.h>
int xconnect (const char *addr);
Connect to the specified remote sockaddr. this is a helper function for xsocket[3] + xbind[3].
The addr argument consists of two parts as follows: transport://address. The transport specifies the underlying transport protocol to use. The meaning of the address part is specific to the underlying transport protocol.
Maximum length of the addr parameter is specified by XSOCKADDRLEN defined in <xio/socket.h> header file.
If the connection succeeds, a xio socket file descriptor for the new socket is returned. On error, -1 is returned, and errno is set appropriately.
Maximum number of active xio sockets was reached.
The syntax of the supplied address is invalid.
The requested transport protocol is not supported.
s = xconnect ("ipc://127.0.0.1:8080"); assert (s >= 0);
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>