GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NN_TCP (7)

.ds Aq ’

NAME

nn_tcp - TCP transport mechanism

CONTENTS

SYNOPSIS

#include <nanomsg/nn.h>

#include <nanomsg/tcp.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):

o

o Asterisk character (*) meaning all local network interfaces.

o

o IPv4 address of a local network interface in numeric form (192.168.0.111).

o

o IPv6 address of a local network interface in numeric form (::1).

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):

o

o IPv4 address of a local network interface in numeric form (192.168.0.111).

o

o IPv6 address of a local network interface in numeric form (::1).

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

o

o IPv4 address of a remote network interface in numeric form (192.168.0.111).

o

o IPv6 address of a remote network interface in numeric form (::1).

o

o The DNS name of the remote box.

    Socket Options

NN_TCP_NODELAY

This option, when set to 1, disables Nagle\(cqs algorithm. It also disables delaying of TCP acknowledgments. Using this option improves latency at the expense of throughput. Type of this option is int. Default value is 0.

EXAMPLE

nn_bind (s1, "tcp://*:5555");
nn_connect (s2, "tcp://myserver:5555");

SEE ALSO

nn_inproc(7) nn_ipc(7) nn_bind(3) nn_connect(3) nanomsg(7)

AUTHORS

Martin Sustrik <\m[blue]sustrik@250bpm.com\m[][1]>

NOTES

1. sustrik@250bpm.com  mailto:sustrik@250bpm.com
Search for    or go to Top of page |  Section 7 |  Main Index


nanomsg Unknown NN_TCP (7) 03/17/2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.