Mercurial > pidgin.yaz
comparison src/network.c @ 8240:609a62b8e748
[gaim-migrate @ 8963]
Make oscar use marv's core listening code. Hopefully my changes
won't make anything any worse... file transfer and odc really need
some lovin.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 12 Feb 2004 17:51:21 +0000 |
parents | 5220e0898252 |
children | 91c6629b1ee8 |
comparison
equal
deleted
inserted
replaced
8239:5220e0898252 | 8240:609a62b8e748 |
---|---|
197 return listenfd; | 197 return listenfd; |
198 } | 198 } |
199 | 199 |
200 int gaim_network_listen(short start, short end) | 200 int gaim_network_listen(short start, short end) |
201 { | 201 { |
202 int ret = 0; | 202 int ret = -1; |
203 | 203 |
204 if (gaim_prefs_get_bool("/core/network/ports_range_use") || | 204 if (gaim_prefs_get_bool("/core/network/ports_range_use") || |
205 (start > end) || (start < 1024) || (end < 1024)) { | 205 (start > end) || (start < 1024) || (end < 1024)) { |
206 start = gaim_prefs_get_int("/core/network/ports_range_start"); | 206 start = gaim_prefs_get_int("/core/network/ports_range_start"); |
207 end = gaim_prefs_get_int("/core/network/ports_range_end"); | 207 end = gaim_prefs_get_int("/core/network/ports_range_end"); |