# HG changeset patch # User rosfran # Date 1164666151 0 # Node ID c29ee8526cc34300d8bb0b1f490c80e059188c90 # Parent ee3d9b05e4f251d43e2dfc1eaa4aa1ca7ea3f8f9 [svn r122] Added dependency to the GMythBackendInfo. diff -r ee3d9b05e4f2 -r c29ee8526cc3 gmyth/src/gmyth_socket.c --- a/gmyth/src/gmyth_socket.c Mon Nov 27 22:18:27 2006 +0000 +++ b/gmyth/src/gmyth_socket.c Mon Nov 27 22:22:31 2006 +0000 @@ -128,7 +128,7 @@ static gint gmyth_socket_find_match_address_uri( GMythURI* uri, gchar *address ) { - if ( g_ascii_strcasecmp( gmyth_uri_gethost( uri ), address ) == 0 ) { + if ( g_ascii_strcasecmp( gmyth_uri_get_host( uri ), address ) == 0 ) { //g_printerr( "Found URI: %s !!!\n", rui_uri_getvalue(uri) ); return 0; } else { @@ -533,6 +533,13 @@ } gmyth_socket->sd_io_ch = g_io_channel_unix_new( gmyth_socket->sd ); + + GIOFlags flags = g_io_channel_get_flags (gmyth_socket->sd_io_ch); + /* unset the nonblock flag */ + flags &= ~G_IO_FLAG_NONBLOCK; + /* unset the nonblocking stuff for some time, because GNUTLS doesn't like + * that */ + g_io_channel_set_flags (gmyth_socket->sd_io_ch, flags, NULL); ret = ( ret_code == 0 ) ? TRUE : FALSE ;