mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
GInetSocketAddress: add IPv6 flowinfo and scope_id fields
struct sin6_addr has two additional fields that struct sin_addr doesn't. Add support for those to GInetSocketAddress, and make sure they don't get lost when converting between glib and native types. https://bugzilla.gnome.org/show_bug.cgi?id=635554
This commit is contained in:
@@ -55,14 +55,16 @@ struct _GInetSocketAddressClass
|
||||
GSocketAddressClass parent_class;
|
||||
};
|
||||
|
||||
GType g_inet_socket_address_get_type (void) G_GNUC_CONST;
|
||||
GType g_inet_socket_address_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GSocketAddress *g_inet_socket_address_new (GInetAddress *address,
|
||||
guint16 port);
|
||||
GSocketAddress *g_inet_socket_address_new (GInetAddress *address,
|
||||
guint16 port);
|
||||
|
||||
GInetAddress * g_inet_socket_address_get_address (GInetSocketAddress *address);
|
||||
GInetAddress * g_inet_socket_address_get_address (GInetSocketAddress *address);
|
||||
guint16 g_inet_socket_address_get_port (GInetSocketAddress *address);
|
||||
|
||||
guint16 g_inet_socket_address_get_port (GInetSocketAddress *address);
|
||||
guint32 g_inet_socket_address_get_flowinfo (GInetSocketAddress *address);
|
||||
guint32 g_inet_socket_address_get_scope_id (GInetSocketAddress *address);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user