GSocket: set protocol when using g_socket_new_from_fd()
authorDan Winship <danw@gnome.org>
Tue, 17 Aug 2010 22:34:13 +0000 (18:34 -0400)
committerDan Winship <danw@gnome.org>
Fri, 22 Oct 2010 18:42:41 +0000 (14:42 -0400)
commit87d06109ab325a4a68e151015381e7e1b33bdf7d
treee805b0837ba4a3db02cef7f38b70e3001ab0748f
parenta62b43fd9cea5455bead9a5bd12a27f01c4fadf4
GSocket: set protocol when using g_socket_new_from_fd()

Otherwise, attempting to create a GSocketConnection from the socket
will likely return the wrong type, since the protocol won't match any
of the registered subtypes.

Also add the start of a GSocket test program (from davidz).

https://bugzilla.gnome.org/show_bug.cgi?id=627171
gio/gsocket.c
gio/tests/.gitignore
gio/tests/Makefile.am
gio/tests/socket.c [new file with mode: 0644]