Add network address and socket types

Types and methods for dealing with IPv4 and IPv6 addresses (and UNIX
domain socket addresses under UNIX). This does not include code for
actual socket I/O.

Originally from "gnio". Much of the code was written by Christian
Kellner, Samuel Cormier-Iijima, and Ryan Lortie.

Part of #548466.
This commit is contained in:
Dan Winship
2008-12-12 13:13:55 -05:00
parent 6a3b4fa05a
commit 68fc055627
19 changed files with 2075 additions and 1 deletions

View File

@@ -90,6 +90,13 @@
<xi:include href="xml/gemblemedicon.xml"/>
<xi:include href="xml/gemblem.xml"/>
</chapter>
<chapter id="networking">
<title>Networking</title>
<xi:include href="xml/ginetaddress.xml"/>
<xi:include href="xml/gsocketaddress.xml"/>
<xi:include href="xml/ginetsocketaddress.xml"/>
<xi:include href="xml/gunixsocketaddress.xml"/>
</chapter>
<chapter id="utils">
<title>Utilities</title>
<xi:include href="xml/gfilenamecompleter.xml"/>

View File

@@ -1312,4 +1312,95 @@ g_io_extension_point_set_required_type
g_io_extension_ref_class
</SECTION>
<SECTION>
<FILE>ginetaddress</FILE>
<TITLE>GInetAddress</TITLE>
GInetAddress
g_inet_address_new_from_string
g_inet_address_new_from_bytes
g_inet_address_new_any
g_inet_address_new_loopback
g_inet_address_to_bytes
g_inet_address_to_string
g_inet_address_get_family
g_inet_address_get_is_any
g_inet_address_get_is_link_local
g_inet_address_get_is_loopback
g_inet_address_get_is_mc_global
g_inet_address_get_is_mc_link_local
g_inet_address_get_is_mc_node_local
g_inet_address_get_is_mc_org_local
g_inet_address_get_is_mc_site_local
g_inet_address_get_is_multicast
g_inet_address_get_is_site_local
<SUBSECTION Standard>
GInetAddressClass
GInetAddressPrivate
G_INET_ADDRESS
G_INET_ADDRESS_CLASS
G_INET_ADDRESS_GET_CLASS
G_IS_INET_ADDRESS
G_IS_INET_ADDRESS_CLASS
G_TYPE_INET_ADDRESS
<SUBSECTION Private>
g_inet_address_get_type
</SECTION>
<SECTION>
<FILE>gsocketaddress</FILE>
<TITLE>GSocketAddress</TITLE>
GSocketAddress
GSocketFamily
g_socket_address_new_from_native
g_socket_address_get_family
g_socket_address_to_native
g_socket_address_get_native_size
<SUBSECTION Standard>
GSocketAddressClass
G_IS_SOCKET_ADDRESS
G_IS_SOCKET_ADDRESS_CLASS
G_SOCKET_ADDRESS
G_SOCKET_ADDRESS_CLASS
G_SOCKET_ADDRESS_GET_CLASS
G_TYPE_SOCKET_ADDRESS
<SUBSECTION Private>
g_socket_address_get_type
</SECTION>
<SECTION>
<FILE>ginetsocketaddress</FILE>
<TITLE>GInetSocketAddress</TITLE>
GInetSocketAddress
g_inet_socket_address_new
g_inet_socket_address_get_address
g_inet_socket_address_get_port
<SUBSECTION Standard>
GInetSocketAddressClass
GInetSocketAddressPrivate
G_INET_SOCKET_ADDRESS
G_INET_SOCKET_ADDRESS_CLASS
G_INET_SOCKET_ADDRESS_GET_CLASS
G_IS_INET_SOCKET_ADDRESS
G_IS_INET_SOCKET_ADDRESS_CLASS
G_TYPE_INET_SOCKET_ADDRESS
<SUBSECTION Private>
g_inet_socket_address_get_type
</SECTION>
<SECTION>
<FILE>gunixsocketaddress</FILE>
<TITLE>GUnixSocketAddress</TITLE>
GUnixSocketAddress
g_unix_socket_address_new
<SUBSECTION Standard>
GUnixSocketAddressClass
GUnixSocketAddressPrivate
G_IS_UNIX_SOCKET_ADDRESS
G_IS_UNIX_SOCKET_ADDRESS_CLASS
G_TYPE_UNIX_SOCKET_ADDRESS
G_UNIX_SOCKET_ADDRESS
G_UNIX_SOCKET_ADDRESS_CLASS
G_UNIX_SOCKET_ADDRESS_GET_CLASS
<SUBSECTION Private>
g_unix_socket_address_get_type
</SECTION>

View File

@@ -36,6 +36,8 @@ g_file_type_get_type
g_filter_input_stream_get_type
g_filter_output_stream_get_type
g_icon_get_type
g_inet_address_get_type
g_inet_socket_address_get_type
g_input_stream_get_type
g_io_error_enum_get_type
g_io_module_get_type
@@ -55,10 +57,12 @@ g_output_stream_splice_flags_get_type
g_password_save_get_type
g_seekable_get_type
g_simple_async_result_get_type
g_socket_address_get_type
g_themed_icon_get_type
g_unix_input_stream_get_type
g_unix_mount_monitor_get_type
g_unix_output_stream_get_type
g_unix_socket_address_get_type
g_vfs_get_type
g_volume_get_type
g_volume_monitor_get_type