|
Lines 249-255
Link Here
|
| 249 |
memset(&hints, 0, sizeof(hints)); |
249 |
memset(&hints, 0, sizeof(hints)); |
| 250 |
hints.ai_family = _protocolFamily; |
250 |
hints.ai_family = _protocolFamily; |
| 251 |
hints.ai_socktype = _sockType; |
251 |
hints.ai_socktype = _sockType; |
| 252 |
hints.ai_flags = 0; |
252 |
hints.ai_flags = AI_ADDRCONFIG; |
| 253 |
hints.ai_protocol = 0; |
253 |
hints.ai_protocol = 0; |
| 254 |
int s; |
254 |
int s; |
| 255 |
s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res); |
255 |
s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res); |
|
Lines 982-988
Link Here
|
| 982 |
memset(&hints, 0, sizeof(hints)); |
982 |
memset(&hints, 0, sizeof(hints)); |
| 983 |
hints.ai_family = _protocolFamily; |
983 |
hints.ai_family = _protocolFamily; |
| 984 |
hints.ai_socktype = _sockType; |
984 |
hints.ai_socktype = _sockType; |
| 985 |
hints.ai_flags = 0; |
985 |
hints.ai_flags = AI_ADDRCONFIG; |
| 986 |
hints.ai_protocol = 0; |
986 |
hints.ai_protocol = 0; |
| 987 |
int s; |
987 |
int s; |
| 988 |
s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res); |
988 |
s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res); |