sdl3/generated/lib_sdl_net library

Properties

libSdl3Net DynamicLibrary
final

Functions

sdlNetAcceptClient(Pointer<SdlNetServer> server, Pointer<Pointer<SdlNetStreamSocket>> clientStream) bool
Create a stream socket for the next pending client connection.
sdlNetCompareAddresses(Pointer<SdlNetAddress> a, Pointer<SdlNetAddress> b) int
Compare two SDLNet_Address objects.
sdlNetCreateClient(Pointer<SdlNetAddress> address, int port) Pointer<SdlNetStreamSocket>
Begin connecting a socket as a client to a remote server.
sdlNetCreateDatagramSocket(Pointer<SdlNetAddress> addr, int port) Pointer<SdlNetDatagramSocket>
Create and bind a new datagram socket.
sdlNetCreateServer(Pointer<SdlNetAddress> addr, int port) Pointer<SdlNetServer>
Create a server, which listens for connections to accept.
sdlNetDestroyDatagram(Pointer<SdlNetDatagram> dgram) → void
Dispose of a datagram packet previously received.
sdlNetDestroyDatagramSocket(Pointer<SdlNetDatagramSocket> sock) → void
Dispose of a previously-created datagram socket.
sdlNetDestroyServer(Pointer<SdlNetServer> server) → void
Dispose of a previously-created server.
sdlNetDestroyStreamSocket(Pointer<SdlNetStreamSocket> sock) → void
Dispose of a previously-created stream socket.
sdlNetFreeLocalAddresses(Pointer<Pointer<SdlNetAddress>> addresses) → void
Free the results from SDLNet_GetLocalAddresses.
sdlNetGetAddressStatus(Pointer<SdlNetAddress> address) int
Check if an address is resolved, without blocking.
sdlNetGetAddressString(Pointer<SdlNetAddress> address) String?
Get a human-readable string from a resolved address.
sdlNetGetConnectionStatus(Pointer<SdlNetStreamSocket> sock) int
Check if a stream socket is connected, without blocking.
sdlNetGetLocalAddresses(Pointer<Int32> numAddresses) Pointer<Pointer<SdlNetAddress>>
Obtain a list of local addresses on the system.
sdlNetGetStreamSocketAddress(Pointer<SdlNetStreamSocket> sock) Pointer<SdlNetAddress>
Get the remote address of a stream socket.
sdlNetGetStreamSocketPendingWrites(Pointer<SdlNetStreamSocket> sock) int
Query bytes still pending transmission on a stream socket.
sdlNetInit() bool
Initialize the SDL_net library.
sdlNetQuit() → void
Deinitialize the SDL_net library.
sdlNetReadFromStreamSocket(Pointer<SdlNetStreamSocket> sock, Pointer<NativeType> buf, int buflen) int
Receive bytes that a remote system sent to a stream socket.
sdlNetReceiveDatagram(Pointer<SdlNetDatagramSocket> sock, Pointer<Pointer<SdlNetDatagram>> dgram) bool
Receive a new packet that a remote system sent to a datagram socket.
sdlNetRefAddress(Pointer<SdlNetAddress> address) Pointer<SdlNetAddress>
Add a reference to an SDLNet_Address.
sdlNetResolveHostname(String? host) Pointer<SdlNetAddress>
Resolve a human-readable hostname.
sdlNetSendDatagram(Pointer<SdlNetDatagramSocket> sock, Pointer<SdlNetAddress> address, int port, Pointer<NativeType> buf, int buflen) bool
Send a new packet over a datagram socket to a remote system.
sdlNetSimulateAddressResolutionLoss(int percentLoss) → void
Enable simulated address resolution failures.
sdlNetSimulateDatagramPacketLoss(Pointer<SdlNetDatagramSocket> sock, int percentLoss) → void
Enable simulated datagram socket failures.
sdlNetSimulateStreamPacketLoss(Pointer<SdlNetStreamSocket> sock, int percentLoss) → void
Enable simulated stream socket failures.
sdlNetUnrefAddress(Pointer<SdlNetAddress> address) → void
Drop a reference to an SDLNet_Address.
sdlNetVersion() int
This function gets the version of the dynamically linked SDL_net library.
sdlNetWaitUntilConnected(Pointer<SdlNetStreamSocket> sock, int timeout) int
Block until a stream socket has connected to a server.
sdlNetWaitUntilInputAvailable(Pointer<Pointer<NativeType>> vsockets, int numsockets, int timeout) int
Block on multiple sockets until at least one has data available.
sdlNetWaitUntilResolved(Pointer<SdlNetAddress> address, int timeout) int
Block until an address is resolved.
sdlNetWaitUntilStreamSocketDrained(Pointer<SdlNetStreamSocket> sock, int timeout) int
Block until all of a stream socket's pending data is sent.
sdlNetWriteToStreamSocket(Pointer<SdlNetStreamSocket> sock, Pointer<NativeType> buf, int buflen) bool
Send bytes over a stream socket to a remote system.