gio: Add GDatagramBased interface and rebase GSocket on it

GDatagramBased is an interface abstracting datagram-based communications
in the style of the Berkeley sockets API. It may be contrasted to (for
example) GIOStream, which supports only streaming I/O.

GDatagramBased allows socket-like communications to be done through any
object, not just a concrete GSocket (which wraps socket()).

This adds the GDatagramBased interface, and implements it in GSocket.

https://bugzilla.gnome.org/show_bug.cgi?id=697907
This commit is contained in:
Philip Withnall
2015-06-12 08:50:42 +01:00
parent e5e08ebedb
commit 4e631d2e5f
11 changed files with 807 additions and 1 deletions

View File

@@ -1995,6 +1995,27 @@ G_TYPE_NETWORK_SERVICE
g_network_service_get_type
</SECTION>
<SECTION>
<FILE>gdatagrambased</FILE>
<TITLE>GDatagramBased</TITLE>
GDatagramBased
GDatagramBasedInterface
GDatagramBasedSourceFunc
g_datagram_based_receive_messages
g_datagram_based_send_messages
g_datagram_based_create_source
g_datagram_based_condition_check
g_datagram_based_condition_wait
<SUBSECTION Standard>
G_DATAGRAM_BASED
G_DATAGRAM_BASED_GET_IFACE
G_IS_DATAGRAM_BASED
G_TYPE_DATAGRAM_BASED
G_TYPE_IS_DATAGRAM_BASED
<SUBSECTION Private>
g_datagram_based_get_type
</SECTION>
<SECTION>
<FILE>gsocket</FILE>
<TITLE>GSocket</TITLE>