Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Creating a socket in the AF_INET6 domain

&pagelevel(4)&pagelevel

The following call creates a stream socket in the IPv6 Internet domain AF_INET6:

s = socket(AF_INET6, SOCK_STREAM, 0);

In this case, the underlying communications support is provided by the TCP protocol.

The following call creates a datagram socket in the IPv6 Internet domain AF_INET6:

s = socket(AF_INET6, SOCK_DGRAM, 0);

The UDP protocol used in this case transfers the datagrams without any further communications support to the underlying network services.