| 422 |
422 |
| 423 if (port == 0 || port == (uint16_t)-1) /* XXX: port is unsigned */ |
423 if (port == 0 || port == (uint16_t)-1) /* XXX: port is unsigned */ |
| 424 port = GG_DEFAULT_DCC_PORT; |
424 port = GG_DEFAULT_DCC_PORT; |
| 425 |
425 |
| 426 while (!bound) { |
426 while (!bound) { |
| |
427 memset(&sin, 0, sizeof(sin)); |
| 427 sin.sin_family = AF_INET; |
428 sin.sin_family = AF_INET; |
| 428 sin.sin_addr.s_addr = INADDR_ANY; |
429 sin.sin_addr.s_addr = INADDR_ANY; |
| 429 sin.sin_port = htons(port); |
430 sin.sin_port = htons(port); |
| 430 |
431 |
| 431 gg_debug(GG_DEBUG_MISC, "// gg_create_dcc_socket() trying port %d\n", port); |
432 gg_debug(GG_DEBUG_MISC, "// gg_create_dcc_socket() trying port %d\n", port); |