diff src/protocols/jabber/si.c @ 12730:d5b8f4dc1622

[gaim-migrate @ 15074] Update gaim_network_listen*() to have the socket type specified. This allows us to use the same functionality to listen on UDP sockets too. There are probably a couple things that should be updated to use this. I also updated SIMPLE to allow the connect port to be specified in the account options. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 05 Jan 2006 05:04:07 +0000
parents cbebda5f019c
children 8e3b85fe4a55
line wrap: on
line diff
--- a/src/protocols/jabber/si.c	Thu Jan 05 04:32:25 2006 +0000
+++ b/src/protocols/jabber/si.c	Thu Jan 05 05:04:07 2006 +0000
@@ -436,7 +436,7 @@
 	xmlnode_set_attrib(streamhost, "jid", jid);
 	g_free(jid);
 
-	if((fd = gaim_network_listen_range(0, 0)) < 0) {
+	if((fd = gaim_network_listen_range(0, 0, SOCK_STREAM)) < 0) {
 		/* XXX: couldn't open a port, we're fscked */
 		return;
 	}