comparison src/network.c @ 8246:e7524f4b4ed2

[gaim-migrate @ 8969] Change some listening stuff. Also, the autorecon thing, the signals should get removed when the hash table is destroyed, so that check should not be necessary. If the function really is getting called then I guess this should be re-added or something... committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Feb 2004 20:58:36 +0000
parents 91c6629b1ee8
children fabcfd9a7c1c
comparison
equal deleted inserted replaced
8245:91c6629b1ee8 8246:e7524f4b4ed2
187 187
188 gaim_debug_info("network", "Listening on port: %hu\n", gaim_network_get_port_from_fd(listenfd)); 188 gaim_debug_info("network", "Listening on port: %hu\n", gaim_network_get_port_from_fd(listenfd));
189 return listenfd; 189 return listenfd;
190 } 190 }
191 191
192 int gaim_network_listen(short start, short end) 192 int gaim_network_listen(short port)
193 {
194 return gaim_network_do_listen(port);
195 }
196
197 int gaim_network_listen_range(short start, short end)
193 { 198 {
194 int ret = -1; 199 int ret = -1;
195 200
196 if (gaim_prefs_get_bool("/core/network/ports_range_use") || 201 if (gaim_prefs_get_bool("/core/network/ports_range_use") ||
197 (start > end) || (start < 1024) || (end < 1024)) { 202 (start > end) || (start < 1024) || (end < 1024)) {