Tao.Sdl SDK Documentation

SdlNet.UDPpacket Structure

UDP packet data encapsulation

For a list of all members of this type, see SdlNet.UDPpacket Members.

System.Object
   System.ValueType
      Tao.Sdl.SdlNet.UDPpacket

[Visual Basic]
Public Structure SdlNet.UDPpacket
[C#]
public struct SdlNet.UDPpacket

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This struct is used with UDPsockets to send and receive data. It also helps keep track of a packets sending/receiving settings and status. The channels concept helps prioritize, or segregate differring types of data packets.

Binds to C-function call in SDL_net.h:

            typedef struct {
                int channel;
                Uint8 *data;
                int len;
                int maxlen;
                int status;
                IPaddress address;
            } UDPpacket;
            

Requirements

Namespace: Tao.Sdl

Assembly: Tao.Sdl (in Tao.Sdl.dll)

See Also

SdlNet.UDPpacket Members | Tao.Sdl Namespace | SdlNet.UDPsocket | SdlNet.IPaddress | SDLNet_AllocPacket | SDLNet_ResizePacket | SDLNet_FreePacket | SDLNet_AllocPacketV | SDLNet_FreePacketV