Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4009 by maya, Tue Aug 17 14:55:08 2010 UTC revision 4089 by doda, Tue Sep 7 03:42:35 2010 UTC
# Line 20  Line 20 
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>
# Line 327  void CommOpen(HWND HW, PTTSet ts, PComVa Line 326  void CommOpen(HWND HW, PTTSet ts, PComVa
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26