Skip to content

CF_Address

Category: net
GitHub: cute_networking.h


A network address.

Struct Members Description
CF_AddressType type The address family. See CF_AddressType.
uint16_t port The port number.
uint8_t ipv4[4] The four octets of an IPv4 address.
uint16_t ipv6[8] The eight groups of an IPv6 address.

Remarks

Layout matches the underlying transport's endpoint type; treat it as a value you obtain from cf_address_init or a CF_ServerEvent, compare with cf_address_equals, and print with cf_address_to_string.

cf_address_equals
CF_AddressType
cf_address_init
cf_address_to_string