Name
gnome-net-address -- a network address.
Details
enum GnomeNetAddressType
typedef enum {
GNOME_NET_ADDRESS_INVALID = 0, /* e.g. dns lookup failed */
GNOME_NET_ADDRESS_INET4 = 1, /* IPv4 */
GNOME_NET_ADDRESS_INET6 = 2 /* IPv6 */
} GnomeNetAddressType; |
Represents a network address type. Currently GNOME_NET_ADDRESS_INET6 is not
really supported in the the GNOME socket library.
struct GnomeNetAddress
typedef struct {
GnomeNetAddressType type;
gpointer address;
guint address_size; /* this must be in _host_ byte order */
} GnomeNetAddress; |
gnome_net_address_new ()
Creates a new network address. If you need, you can fill the address
octet-by-octet writing it into the address field of the structure.
gnome_net_address_dup ()
Duplicates a network address, creating a copy.
gnome_net_address_destroy ()
Frees the memory allocated for addr.