Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/commlib.c
Parent Directory
| Revision Log
| Patch
| 677 |
{ |
{ |
| 678 |
wchar_t ErrMsgW[31]; |
wchar_t ErrMsgW[31]; |
| 679 |
char Temp[20]; |
char Temp[20]; |
| 680 |
wchar_t UIMsgW[MAX_UIMSG]; |
wchar_t *UIMsgW; |
| 681 |
|
|
| 682 |
if (! cv->Open ) { |
if (! cv->Open ) { |
| 683 |
return; |
return; |
| 695 |
case IdTCPIP: |
case IdTCPIP: |
| 696 |
switch (HIWORD(lParam)) { |
switch (HIWORD(lParam)) { |
| 697 |
case WSAECONNREFUSED: |
case WSAECONNREFUSED: |
| 698 |
get_lang_msgW("MSG_COMM_REFUSE_ERROR", UIMsgW, _countof(UIMsgW), L"Connection refused", ts->UILanguageFile); |
GetI18nStrWW("Tera Term", "MSG_COMM_REFUSE_ERROR", L"Connection refused", ts->UILanguageFileW, &UIMsgW); |
| 699 |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
| 700 |
|
free(UIMsgW); |
| 701 |
break; |
break; |
| 702 |
case WSAENETUNREACH: |
case WSAENETUNREACH: |
| 703 |
get_lang_msgW("MSG_COMM_REACH_ERROR", UIMsgW, _countof(UIMsgW), L"Network cannot be reached", ts->UILanguageFile); |
GetI18nStrWW("Tera Term", "MSG_COMM_REACH_ERROR", L"Network cannot be reached", ts->UILanguageFileW, &UIMsgW); |
| 704 |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
| 705 |
|
free(UIMsgW); |
| 706 |
break; |
break; |
| 707 |
case WSAETIMEDOUT: |
case WSAETIMEDOUT: |
| 708 |
get_lang_msgW("MSG_COMM_CONNECT_ERROR", UIMsgW, _countof(UIMsgW), L"Connection timed out", ts->UILanguageFile); |
GetI18nStrWW("Tera Term", "MSG_COMM_CONNECT_ERROR", L"Connection timed out", ts->UILanguageFileW, &UIMsgW); |
| 709 |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
| 710 |
|
free(UIMsgW); |
| 711 |
break; |
break; |
| 712 |
default: |
default: |
| 713 |
get_lang_msgW("MSG_COMM_TIMEOUT_ERROR", UIMsgW, _countof(UIMsgW), L"Cannot connect the host", ts->UILanguageFile); |
GetI18nStrWW("Tera Term", "MSG_COMM_TIMEOUT_ERROR", L"Cannot connect the host", ts->UILanguageFileW, &UIMsgW); |
| 714 |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
_snwprintf_s(ErrMsgW, _countof(ErrMsgW), _TRUNCATE, L"%s", UIMsgW); |
| 715 |
|
free(UIMsgW); |
| 716 |
|
break; |
| 717 |
} |
} |
| 718 |
if (HIWORD(lParam)>0) { |
if (HIWORD(lParam)>0) { |
| 719 |
/* connect() failed */ |
/* connect() failed */ |
|
|
Legend:
| Removed from v.10474 |
|
| changed lines |
| |
Added in v.10617 |
|
|
| |