SDLNet.UDPSocket.send:


Description:

public int send (int channel, SDLNet.UDPPacket packet)
Send a single packet to the specified channel. NOTE: The maximum size of the packet is limited by the MTU (Maximum Transfer Unit) of the transport medium. It can be as low as 250 bytes for some PPP links, and as high as 1500 bytes for ethernet.

Parameters:

ptr: If the channel specified in the packet is -1, the packet will be sent to the address in the 'src' member of the packet.
ptr: The packet will be updated with the status of the packet after it has been sent.

Returns:

This function returns 1 if the packet was sent, or 0 on error.

created by valadoc