NAME

XPF_TCP - TCP transport mechanism

SYNOPSIS

#include <xio/socket.h>

DESCRIPTION

TCP transport allows for passing message over the network using simple reliable one-to-one connections. TCP is the most widely used transport protocol, it is virtually ubiquitous and thus the transport of choice for communication over the network.

When binding a TCP socket address of the form tcp://interface:port should be used. Port is the TCP port number to use. Interface is one of the following (optionally placed within square brackets):

When connecting a TCP socket address of the form tcp@interface://address:port should be used. Port is the TCP port number to use. Interface is optional and specifies which local network interface to use. If not specified, OS will select an appropriate interface itself. If specified it can be one of the following (optionally placed within square brackets):

Finally, address specifies the remote address to connect to. It can be one of the following (optionally placed within square brackets):

EXAMPLE

s = xlisten ("tcp://127.0.0.1:5555");

SEE ALSO

xpf_inproc(7) xpf_ipc(7) xbind(3) xlisten(3) xconnect(3) xio(7)

AUTHORS

Dong Fang <yp.fangdong@gmail.com>
Martin Sustrik <sustrik@250bpm.com>