Browse Subversion Repository
Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c
Parent Directory
| Revision Log
| Patch
| 20 |
#include <winsock2.h> |
#include <winsock2.h> |
| 21 |
#include <ws2tcpip.h> |
#include <ws2tcpip.h> |
| 22 |
#include <stdio.h> /* for _snprintf() */ |
#include <stdio.h> /* for _snprintf() */ |
|
#include "WSAAsyncGetAddrInfo.h" |
|
| 23 |
#endif /* NO_INET6 */ |
#endif /* NO_INET6 */ |
| 24 |
#include <time.h> |
#include <time.h> |
| 25 |
#include <locale.h> |
#include <locale.h> |
| 326 |
hints.ai_protocol = IPPROTO_TCP; |
hints.ai_protocol = IPPROTO_TCP; |
| 327 |
_snprintf_s(pname, sizeof(pname), _TRUNCATE, "%d", ts->TCPPort); |
_snprintf_s(pname, sizeof(pname), _TRUNCATE, "%d", ts->TCPPort); |
| 328 |
|
|
| 329 |
HAsync = WSAAsyncGetAddrInfo(HW, WM_USER_GETHOST, |
HAsync = PWSAAsyncGetAddrInfo(HW, WM_USER_GETHOST, |
| 330 |
ts->HostName, pname, &hints, &cv->res0); |
ts->HostName, pname, &hints, &cv->res0); |
| 331 |
if (HAsync == 0) |
if (HAsync == 0) |
| 332 |
InvalidHost = TRUE; |
InvalidHost = TRUE; |
|
|
Legend:
| Removed from v.4009 |
|
| changed lines |
| |
Added in v.4089 |
|
|
| |