NET_Address.3type - Man Page

Opaque representation of a computer-readable network address.

Synopsis

#include <SDL3_net/SDL_net.h>

typedef struct NET_Address NET_Address;

Description

This is an opaque datatype, to be treated by the app as a handle.

SDL_net uses these to identify other servers; you use them to connect to a remote machine, and you use them to find out who connected to you. They are also used to decide what network interface to use when creating a server.

These are intended to be protocol-independent; a given address might be for IPv4, IPv6, or something more esoteric. SDL_net attempts to hide the differences.

Availability

This datatype is available since SDL_net 3.0.0.

See Also

NET_ResolveHostname(3), NET_GetLocalAddresses(3), NET_CompareAddresses(3)

Info

SDL_net 3.2.0 SDL_net3 DATATYPES