Mercurial > pidgin
diff libpurple/protocols/bonjour/jabber.c @ 20070:efadfc6e2117
Fix up Bonjour to use purple_connection_error_reason.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Tue, 18 Sep 2007 16:32:01 +0000 |
parents | 44b4e8bd759b |
children | ba41f2a60253 |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c Mon Sep 17 16:54:45 2007 +0000 +++ b/libpurple/protocols/bonjour/jabber.c Tue Sep 18 16:32:01 2007 +0000 @@ -580,7 +580,8 @@ if ((data->socket = socket(PF_INET, SOCK_STREAM, 0)) < 0) { purple_debug_error("bonjour", "Cannot open socket: %s\n", strerror(errno)); - purple_connection_error(data->account->gc, _("Cannot open socket")); + purple_connection_error_reason (data->account->gc, + PURPLE_REASON_NETWORK_ERROR, _("Cannot open socket")); return -1; } @@ -588,7 +589,8 @@ if (setsockopt(data->socket, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) != 0) { purple_debug_error("bonjour", "Error setting socket options: %s\n", strerror(errno)); - purple_connection_error(data->account->gc, _("Error setting socket options")); + purple_connection_error_reason (data->account->gc, + PURPLE_REASON_NETWORK_ERROR, _("Error setting socket options")); return -1; } @@ -612,7 +614,8 @@ if (!bind_successful) { purple_debug_error("bonjour", "Cannot bind socket: %s\n", strerror(errno)); - purple_connection_error(data->account->gc, _("Could not bind socket to port")); + purple_connection_error_reason (data->account->gc, + PURPLE_REASON_NETWORK_ERROR, _("Could not bind socket to port")); return -1; } @@ -620,7 +623,8 @@ if (listen(data->socket, 10) != 0) { purple_debug_error("bonjour", "Cannot listen on socket: %s\n", strerror(errno)); - purple_connection_error(data->account->gc, _("Could not listen on socket")); + purple_connection_error_reason (data->account->gc, + PURPLE_REASON_NETWORK_ERROR, _("Could not listen on socket")); return -1; }