File indexing completed on 2025-01-18 09:59:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #ifndef __G_INET_SOCKET_ADDRESS_H__
0025 #define __G_INET_SOCKET_ADDRESS_H__
0026
0027 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0028 #error "Only <gio/gio.h> can be included directly."
0029 #endif
0030
0031 #include <gio/gsocketaddress.h>
0032
0033 G_BEGIN_DECLS
0034
0035 #define G_TYPE_INET_SOCKET_ADDRESS (g_inet_socket_address_get_type ())
0036 #define G_INET_SOCKET_ADDRESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_INET_SOCKET_ADDRESS, GInetSocketAddress))
0037 #define G_INET_SOCKET_ADDRESS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_INET_SOCKET_ADDRESS, GInetSocketAddressClass))
0038 #define G_IS_INET_SOCKET_ADDRESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_INET_SOCKET_ADDRESS))
0039 #define G_IS_INET_SOCKET_ADDRESS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_INET_SOCKET_ADDRESS))
0040 #define G_INET_SOCKET_ADDRESS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_INET_SOCKET_ADDRESS, GInetSocketAddressClass))
0041
0042 typedef struct _GInetSocketAddressClass GInetSocketAddressClass;
0043 typedef struct _GInetSocketAddressPrivate GInetSocketAddressPrivate;
0044
0045 struct _GInetSocketAddress
0046 {
0047 GSocketAddress parent_instance;
0048
0049
0050 GInetSocketAddressPrivate *priv;
0051 };
0052
0053 struct _GInetSocketAddressClass
0054 {
0055 GSocketAddressClass parent_class;
0056 };
0057
0058 GIO_AVAILABLE_IN_ALL
0059 GType g_inet_socket_address_get_type (void) G_GNUC_CONST;
0060
0061 GIO_AVAILABLE_IN_ALL
0062 GSocketAddress *g_inet_socket_address_new (GInetAddress *address,
0063 guint16 port);
0064 GIO_AVAILABLE_IN_2_40
0065 GSocketAddress *g_inet_socket_address_new_from_string (const char *address,
0066 guint port);
0067
0068 GIO_AVAILABLE_IN_ALL
0069 GInetAddress * g_inet_socket_address_get_address (GInetSocketAddress *address);
0070 GIO_AVAILABLE_IN_ALL
0071 guint16 g_inet_socket_address_get_port (GInetSocketAddress *address);
0072
0073 GIO_AVAILABLE_IN_2_32
0074 guint32 g_inet_socket_address_get_flowinfo (GInetSocketAddress *address);
0075 GIO_AVAILABLE_IN_2_32
0076 guint32 g_inet_socket_address_get_scope_id (GInetSocketAddress *address);
0077
0078 G_END_DECLS
0079
0080 #endif