package vendor:sdl2/net
⌘K
Ctrl+K
or
/
Index
Variables (0)
This section is empty.
Procedures (46)
- AddSocket
- AllocPacket
- AllocPacketSlice
- AllocPacketV
- AllocSocketSet
- CheckSockets
- DelSocket
- FreePacket
- FreePacketSlice
- FreePacketV
- FreeSocketSet
- GetError
- GetLocalAddresses
- Init
- Linked_Version
- Quit
- Read16
- Read32
- ResizePacket
- ResolveHost
- ResolveIP
- SetError
- SocketReady
- TCP_Accept
- TCP_AddSocket
- TCP_Close
- TCP_DelSocket
- TCP_GetPeerAddress
- TCP_Open
- TCP_Recv
- TCP_Send
- UDP_AddSocket
- UDP_Bind
- UDP_Close
- UDP_DelSocket
- UDP_GetPeerAddress
- UDP_Open
- UDP_Recv
- UDP_RecvV
- UDP_Send
- UDP_SendSlice
- UDP_SendV
- UDP_SetPacketLoss
- UDP_Unbind
- Write16
- Write32
Procedure Groups (0)
This section is empty.
Types
GenericSocket ¶
GenericSocket :: ^struct { ready: i32, }
Any network socket can be safely cast to this socket type
SocketSet ¶
SocketSet :: distinct rawptr
Related Procedures With Parameters
- AddSocket
- CheckSockets
- DelSocket
- FreeSocketSet
- TCP_AddSocket
- TCP_DelSocket
- UDP_AddSocket
- UDP_DelSocket
Related Procedures With Returns
TCPsocket ¶
TCPsocket :: distinct rawptr
Related Procedures With Parameters
Related Procedures With Returns
UDPpacket ¶
UDPpacket :: struct { channel: i32, // The src/dst channel of the packet data: [^]u8, // The packet data len: i32, // The length of the packet data maxlen: i32, // The size of the data buffer status: i32, // packet status after sending address: IPaddress, }
Related Procedures With Parameters
Related Procedures With Returns
UDPsocket ¶
UDPsocket :: distinct rawptr
Related Procedures With Parameters
- UDP_AddSocket
- UDP_Bind
- UDP_Close
- UDP_DelSocket
- UDP_GetPeerAddress
- UDP_Recv
- UDP_RecvV
- UDP_Send
- UDP_SendSlice
- UDP_SendV
- UDP_SetPacketLoss
- UDP_Unbind
Related Procedures With Returns
Constants
INADDR_ANY ¶
INADDR_ANY :: 0x00000000
INADDR_BROADCAST ¶
INADDR_BROADCAST :: 0xFFFFFFFF
INADDR_LOOPBACK ¶
INADDR_LOOPBACK :: 0x7f000001
INADDR_NONE ¶
INADDR_NONE :: 0xFFFFFFFF
MAJOR_VERSION ¶
MAJOR_VERSION :: 2
MINOR_VERSION ¶
MINOR_VERSION :: 0
PATCHLEVEL ¶
PATCHLEVEL :: 1
Variables
This section is empty.
Procedures
FreePacket ¶
FreePacket :: proc "c" (packet: ^UDPpacket) ---
FreePacketSlice ¶
FreePacketSlice :: proc "c" (packets: []^UDPpacket) {…}
FreePacketV ¶
FreePacketV :: proc "c" (packetV: [^]^UDPpacket) ---
FreeSocketSet ¶
FreeSocketSet :: proc "c" (set: SocketSet) ---
GetError ¶
GetError :: proc "c" () -> cstring ---
Linked_Version ¶
Linked_Version :: proc "c" () -> ^sdl2.version ---
Read16 ¶
Read a 16/32-bit value from network packet buffer
TCP_Close ¶
TCP_Close :: proc "c" (sock: TCPsocket) ---
UDP_Close ¶
UDP_Close :: proc "c" (sock: UDPsocket) ---
Write16 ¶
Write a 16/32-bit value to network packet buffer
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-20 21:10:47.868612000 +0000 UTC