![]() |
libgpac
Documentation of the core library of GPAC
|
Network tools (time, byte ordering, ...) More...
Typedefs | |
typedef Bool(* | gf_net_ifce_enum) (void *cbk, const char *name, const char *IP, u32 flags) |
Enumerations | |
enum | { GF_NETIF_ACTIVE = 1 , GF_NETIF_NO_MCAST = 1<<1 , GF_NETIF_RECV_ONLY = 1<<2 , GF_NETIF_LOOPBACK = 1<<3 , GF_NETIF_IPV6 = 1<<4 } |
Functions | |
u32 | gf_net_has_ipv6 () |
gets ipv6 support More... | |
Bool | gf_net_is_ipv6 (const char *address) |
checks address type More... | |
Bool | gf_net_enum_interfaces (gf_net_ifce_enum do_enum, void *enum_cbk) |
enumerate network interfaces More... | |
u32 | gf_htonl (u32 val) |
u32 | gf_ntohl (u32 val) |
u16 | gf_htons (u16 val) |
u16 | gf_ntohs (u16 val) |
Network tools (time, byte ordering, ...)
network interface enumeration callback
cbk | user data passed to gf_net_enum_interfaces |
name | interface name |
IP | interface IP address string, may be NULL |
flags | flags for interface and address |
anonymous enum |
u32 gf_net_has_ipv6 | ( | ) |
gets ipv6 support
Returns IPV6 support information.
Bool gf_net_is_ipv6 | ( | const char * | address | ) |
checks address type
Checks if an address is an IPV6 or IPV4 one.
address | address to check |
Bool gf_net_enum_interfaces | ( | gf_net_ifce_enum | do_enum, |
void * | enum_cbk | ||
) |
enumerate network interfaces
Enumerates available network interfaces with IP. The callback function is called for each defined IP address of the interface
enum_cbk | user data passed to callback function, may be NULL |
do_enum | callback function |
host to network conversion of integer
val | integrer to convert |
network to host conversion of integer
val | integrer to convert |
host to network conversion of short integer
val | short integrer to convert |