Work-around some issues with gio on windows
authorJens Georg <mail@jensge.org>
Sun, 2 May 2010 15:37:06 +0000 (17:37 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sun, 10 Oct 2010 19:24:31 +0000 (22:24 +0300)
commitff9c787e0de55008745c38e862e5cdfb38ee41d2
tree7460c06b3bca214fa496dd7af96c72d58afad875
parenta57e04c0a2c8320303219340d7f18752af2f60ed
Work-around some issues with gio on windows

glib uses a rather strange mechanism to init the winsock library (through
usage of g_inet_addres_*), so we better do it ourselves.

glib - rightly - doesn't set SO_REUSEADDR on g_socket_bind on windows
since it has different semantics. Nevertheless we need it on windows for
multicast sockets, so we add a helper function to set this socket option.
libgssdp/gssdp-client.c
libgssdp/gssdp-socket-functions.c
libgssdp/gssdp-socket-functions.h
libgssdp/gssdp-socket-source.c