int socket(int af, int type, int protocol);
The NuTCRACKER Platform socket support is based on WinSock 2.0.
such as SOCK_STREAM provide full-duplex connections, and
must be in a connected state before any data may be sent or
received on it. A connection to another socket is created with a
The communications protocols used to implement a reliable, connection-oriented socket, ensure that data is not lost or duplicated. If data for which the peer protocol has buffer space cannot be successfully transmitted within a reasonable length of time, the connection is considered broken and subsequent calls fail with the error code set to ETIMEDOUT.
sockets allow sending and receiving of datagrams to and from
arbitrary peers using
Specifies the address family to be used with the socket. All the address families supported by WinSock 2.0 are supported in the NuTCRACKER Platform. Choices include AF_INET, AF_UNIX, AF_IPX, and so on. Platforms which have support for IPV6 installed may use AF_INET6 for the address family.
Specifies the socket type which defines the semantics of communication.
Specifies the appropriate protocol for the address family and socket type. It is indicated by a well known constant specific to each address family. The default protocol (protocol parameter to the
socket()call is 0) should be correct for most situations.
The specified address family is not supported.
No more socket descriptors can be created.
The network subsystem has failed.
No buffer space is available. The socket cannot be created.
The specified protocol is not supported.
The socket type is not supported by the protocol.
The specified socket type is not supported in this address family.
UNIX 98, with exceptions.
The NuTCRACKER Platform supports all the address families that WinSock 2.0 supports.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
accept(), bind(), connect(), getsockname(), getsockopt(), listen(), recv(), select(), send(), shutdown(), socketpair()
PTC MKS Toolkit 10.2 Documentation Build 28.