libgpac
Documentation of the core library of GPAC
Loading...
Searching...
No Matches
Network Time and helpers

Network tools (time, byte ordering, ...) More...

Functions

u32 gf_net_has_ipv6 ()
 gets ipv6 support
 
Bool gf_net_is_ipv6 (const char *address)
 checks address type
 
u32 gf_htonl (u32 val)
 
u32 gf_ntohl (u32 val)
 
u16 gf_htons (u16 val)
 
u16 gf_ntohs (u16 val)
 

Detailed Description

Network tools (time, byte ordering, ...)

Function Documentation

◆ gf_net_has_ipv6()

u32 gf_net_has_ipv6 ( )

gets ipv6 support

Returns IPV6 support information.

Returns
2 if the machine has IPV6 support, 1 if the library was compiled with IPV6 support, 0 otherwise

◆ gf_net_is_ipv6()

Bool gf_net_is_ipv6 ( const char *  address)

checks address type

Checks if an address is an IPV6 or IPV4 one.

Parameters
addressaddress to check
Returns
true 1 if address is IPV6 one, 0 otherwise

◆ gf_htonl()

u32 gf_htonl ( u32  val)

host to network conversion of integer

Parameters
valintegrer to convert
Returns
converted integer

◆ gf_ntohl()

u32 gf_ntohl ( u32  val)

network to host conversion of integer

Parameters
valintegrer to convert
Returns
converted integer

◆ gf_htons()

u16 gf_htons ( u16  val)

host to network conversion of short integer

Parameters
valshort integrer to convert
Returns
converted integer

◆ gf_ntohs()

u16 gf_ntohs ( u16  val)

network to host conversion of short integer

Parameters
valshort integrer to convert
Returns
converted integer