Mercurial > pidgin
comparison src/network.c @ 11221:5ed33bb06a84
[gaim-migrate @ 13353]
These changes must have been unintentionally reverted
committer: Tailor Script <tailor@pidgin.im>
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Tue, 09 Aug 2005 12:12:14 +0000 |
| parents | 986160f7b6ca |
| children | ea2ef55b3a05 |
comparison
equal
deleted
inserted
replaced
| 11220:dc6fabb3b645 | 11221:5ed33bb06a84 |
|---|---|
| 175 hints.ai_flags = AI_PASSIVE; | 175 hints.ai_flags = AI_PASSIVE; |
| 176 hints.ai_family = AF_UNSPEC; | 176 hints.ai_family = AF_UNSPEC; |
| 177 hints.ai_socktype = SOCK_STREAM; | 177 hints.ai_socktype = SOCK_STREAM; |
| 178 errnum = getaddrinfo(NULL /* any IP */, serv, &hints, &res); | 178 errnum = getaddrinfo(NULL /* any IP */, serv, &hints, &res); |
| 179 if (errnum != 0) { | 179 if (errnum != 0) { |
| 180 #ifndef _WIN32 | |
| 180 gaim_debug_warning("network", "getaddrinfo: %s\n", gai_strerror(errnum)); | 181 gaim_debug_warning("network", "getaddrinfo: %s\n", gai_strerror(errnum)); |
| 181 if (errnum == EAI_SYSTEM) | 182 if (errnum == EAI_SYSTEM) |
| 182 gaim_debug_warning("network", "getaddrinfo: system error: %s\n", strerror(errno)); | 183 gaim_debug_warning("network", "getaddrinfo: system error: %s\n", strerror(errno)); |
| 184 #else | |
| 185 gaim_debug_warning("network", "getaddrinfo: Error Code = %d\n", errnum); | |
| 186 #endif | |
| 183 return -1; | 187 return -1; |
| 184 } | 188 } |
| 185 | 189 |
| 186 /* | 190 /* |
| 187 * Go through the list of addresses and attempt to listen on | 191 * Go through the list of addresses and attempt to listen on |
| 292 } | 296 } |
| 293 | 297 |
| 294 void | 298 void |
| 295 gaim_network_init(void) | 299 gaim_network_init(void) |
| 296 { | 300 { |
| 301 gaim_debug_register_category("network"); | |
| 302 | |
| 297 gaim_prefs_add_none ("/core/network"); | 303 gaim_prefs_add_none ("/core/network"); |
| 298 gaim_prefs_add_bool ("/core/network/auto_ip", TRUE); | 304 gaim_prefs_add_bool ("/core/network/auto_ip", TRUE); |
| 299 gaim_prefs_add_string("/core/network/public_ip", ""); | 305 gaim_prefs_add_string("/core/network/public_ip", ""); |
| 300 gaim_prefs_add_bool ("/core/network/ports_range_use", FALSE); | 306 gaim_prefs_add_bool ("/core/network/ports_range_use", FALSE); |
| 301 gaim_prefs_add_int ("/core/network/ports_range_start", 1024); | 307 gaim_prefs_add_int ("/core/network/ports_range_start", 1024); |
