FreeRTOS: Secure Sockets
Return to main page ↑
SOCKETS_Socket

Creates a TCP socket.

Socket_t SOCKETS_Socket( int32_t lDomain,
int32_t lType,
int32_t lProtocol );

See the FreeRTOS+TCP networking tutorial for more information on TCP sockets.

See the Berkeley Sockets API in wikipedia

See also
SOCKETS_Close()
Parameters
[in]lDomainMust be set to SOCKETS_AF_INET. See SocketDomains.
[in]lTypeSet to SOCKETS_SOCK_STREAM to create a TCP socket. No other value is valid. See SocketTypes.
[in]lProtocolSet to SOCKETS_IPPROTO_TCP to create a TCP socket. No other value is valid. See Protocols.
Returns
  • If a socket is created successfully, then the socket handle is returned
  • SOCKETS_INVALID_SOCKET is returned if an error occurred.
SOCKETS_Socket
Socket_t SOCKETS_Socket(int32_t lDomain, int32_t lType, int32_t lProtocol)
Creates a TCP socket.
Socket_t
struct xSOCKET * Socket_t
Socket handle data type.
Definition: iot_secure_sockets.h:68