Tao.Sdl SDK Documentation

SdlNet Methods

The methods of the SdlNet class are listed below. For a complete list of SdlNet class members, see the SdlNet Members topic.

Public Static (Shared) Methods

SDL_NET_VERSION This method can be used to fill a version structure with the compile-time version of the SDL_net library.
SDLNet_AddSocket Add a socket to a socket set
SDLNet_AllocPacket Allocate a new UDP packet with a data buffer
SDLNet_AllocPacketV Allocate a vector of UDPpackets
SDLNet_AllocSocketSet Create a new socket set
SDLNet_CheckSockets Check and wait for sockets in a set to have activity
SDLNet_DelSocket Remove a socket from a socket set
SDLNet_FreePacket Free a previously allocated UDPpacket
SDLNet_FreePacketV Free a vector of UDPpackets
SDLNet_FreeSocketSet Free a socket set
SDLNet_GetError Get the current error string
SDLNet_Init Initialize the network API.
SDLNet_Linked_Version Using this you can compare the runtime version to the version that you compiled with.
SDLNet_Quit Shutdown and cleanup the network API.
SDLNet_Read16 Get a 16bit (a short on 32bit systems) value from the data buffer area which is in network byte order.
SDLNet_Read32 Get a 32bit (a long on 32bit systems) value from the data buffer area which is in network byte order.
SDLNet_ResizePacket Resize the data buffer in a UDPpacket
SDLNet_ResolveHost Resolve the string host, and fill in the IPaddress pointed to by address with the resolved IP and the port number passed in through port.
SDLNet_ResolveIP Resolve the IPv4 numeric address in address->host, and return the hostname as a string.
SDLNet_SetError This is the same as SDL_SetError, which sets an SDL error message
SDLNet_SocketReady See if a socket has activity
SDLNet_TCP_Accept Accept a connection on a server socket
SDLNet_TCP_AddSocket Add a socket to a socket set
SDLNet_TCP_Close Close a TCP socket
SDLNet_TCP_DelSocket Remove a socket from a socket set
SDLNet_TCP_GetPeerAddress Get the remote host address and port number
SDLNet_TCP_Open Open a TCP client or server socket
SDLNet_TCP_Recv Receive data from a connected socket
SDLNet_TCP_Send Send data over a connected socket
SDLNet_UDP_AddSocket Add a socket to a socket set
SDLNet_UDP_Bind Assign an IP address number to a socket channel
SDLNet_UDP_Close Close and free a UDP socket
SDLNet_UDP_DelSocket Remove a socket from a socket set
SDLNet_UDP_GetPeerAddress Get the assigned IP address for a socket channel or get the port you opened the socket with
SDLNet_UDP_Open Create a UDP socket
SDLNet_UDP_Recv Receive into a UDPpacket
SDLNet_UDP_RecvV Receive into a UDPpacket vector
SDLNet_UDP_Send Send a UDPpacket
SDLNet_UDP_SendV Send a UDPpacket vector
SDLNet_UDP_Unbind Remove all assigned IP addresses from a socket channel
SDLNet_Write16 Put the 16bit (a short on 32bit systems) value into the data buffer area in network byte order.
SDLNet_Write32 Put the 32bit (a long on 32bit systems) value into the data buffer area in network byte order.

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

See Also

SdlNet Class | Tao.Sdl Namespace