Socket (SOC) Function list

Socket Functions

SOC_Socket Creates a new socket that is not bound.
SOC_Close Closes a socket.
SOC_Shutdown Disables socket sending and receiving.
SOC_Bind Allocates a socket to a local host.
SOC_Connect Tries to connect to the specified socket.
SOC_Listen Makes the socket stand by to receive a connection.
SOC_Accept Creates a new socket for a newly-created connection.
SOC_Read Receives data from the specified socket.
SOC_Recv Receives data from the specified socket.
SOC_RecvFrom Receives data from the specified socket.
SOC_Write Sends data over the specified socket.
SOC_Send Sends data over the specified socket.
SOC_SendTo Sends data over the specified socket.
SOC_Fcntl Sets the socket to blocked/non-blocked mode.
SOC_Poll Checks the socket's status.
SOC_GetHostID Returns the host's primary IPv4 address.
SOC_GetHostByAddr Returns information about the host at the specified address.
SOC_GetHostByName Returns information about the host with the specified name.
SOC_GetSockName Gets the name bound to the specified socket's local host.

Interface Functions

SOC_GetMacAddr Gets the MAC address of the specified interface.
SOC_GetAddr Gets the Internet address of the specified interface.
SOC_GetAlias Gets the Internet alias address of the specified interface.
SOC_GetGateway Gets the default gateway address of the specified interface.
SOC_GetNetmask Gets the net mask of the specified interface.
SOC_GetBroadcastAddr Gets the broadcast address of the specified interface.
SOC_GetMtu Gets the maximum transmission unit (MTU) of the specified interface.
SOC_GetLinkState Checks whether or not the specified network interface is linked to the AP.
SOC_GetConfigError Gets the host configuration error code.
SOC_ClearConfigError Clears the host configuration error code.

DHCP Functions

SOC_DHCPGetStatus Gets the DHCP status.

Conversion Functions

SOC_HtoNs Converts the local host's two-byte integer to the network byte order.
SOC_HtoNl Converts the local host's four-byte integer to the network byte order.
SOC_NtoHs Converts the network byte order's two-byte integer to the local host's byte order.
SOC_NtoHl Converts the network byte order's four-byte integer to the local host's byte order.
SOC_InetAtoN Converts the Internet host address from dot-decimal notation to a binary format.
SOC_InetNtoA Converts the Internet host address to a character string in dot-decimal notation.
SOC_InetPtoN Converts an address in standard text notation to numeric binary format.
SOC_InetNtoP Converts an address in binary format to the proper text string.
SOC_U32to4U8 Converts u32 values to a u8 x 4 array.

Extended Functions

SOC_Startup Initializes the library's socket layer.
SOC_Cleanup Closes all open sockets and shuts down the socket library.
SOC_GetResolver Gets the primary and secondary DNS server addresses.
SOC_SetResolver Sets the primary and secondary DNS server addresses.

SSL Communication Functions

SOC_EnableSsl Sets a specified socket to perform SSL communications.
SOC_AddRandomSeed Generates a pool of random numbers for use in SSL communication.

Structures

SOCInAddr Represents the IPv4 Internet host address.
SOCSockAddr A data type for representing socket addresses.
SOCSockAddrIn A data type for representing Internet socket addresses.
SOCConfig A structure that stores information required for initializing the library's socket layer.
SOCHostEnt Structure that stores host information.
SOCSslConnection A structure for maintaining the settings and state for SSL communication.
SOCCaInfo A structure for expressing the server certificate for use in SSL communication.

Information

Error Code List Error code list that is used with the socket library.