| 820 |
LOG_LEVEL_VERBOSE); |
LOG_LEVEL_VERBOSE); |
| 821 |
} |
} |
| 822 |
|
|
| 823 |
void notify_closed_connection(PTInstVar pvar) |
void notify_closed_connection(PTInstVar pvar, char FAR * send_msg) |
| 824 |
{ |
{ |
| 825 |
SSH_notify_disconnecting(pvar, NULL); |
SSH_notify_disconnecting(pvar, send_msg); |
| 826 |
AUTH_notify_disconnecting(pvar); |
AUTH_notify_disconnecting(pvar); |
| 827 |
HOSTS_notify_disconnecting(pvar); |
HOSTS_notify_disconnecting(pvar); |
| 828 |
|
|
| 829 |
PostMessage(pvar->NotificationWindow, WM_USER_COMMNOTIFY, |
PostMessage(pvar->NotificationWindow, WM_USER_COMMNOTIFY, |
| 830 |
pvar->socket, MAKELPARAM(FD_CLOSE, 0)); |
pvar->socket, MAKELPARAM(FD_CLOSE, 0)); |
|
|
|
| 831 |
} |
} |
| 832 |
|
|
| 833 |
static void add_err_msg(PTInstVar pvar, char FAR * msg) |
static void add_err_msg(PTInstVar pvar, char FAR * msg) |
| 868 |
} |
} |
| 869 |
} |
} |
| 870 |
|
|
| 871 |
void notify_fatal_error(PTInstVar pvar, char FAR * msg) |
void notify_fatal_error(PTInstVar pvar, char FAR * msg, BOOL send_disconnect) |
| 872 |
{ |
{ |
| 873 |
if (msg[0] != 0) { |
if (msg[0] != 0) { |
| 874 |
notify_verbose_message(pvar, msg, LOG_LEVEL_FATAL); |
notify_verbose_message(pvar, msg, LOG_LEVEL_FATAL); |
| 878 |
if (!pvar->fatal_error) { |
if (!pvar->fatal_error) { |
| 879 |
pvar->fatal_error = TRUE; |
pvar->fatal_error = TRUE; |
| 880 |
|
|
| 881 |
SSH_notify_disconnecting(pvar, msg); |
if (send_disconnect) { |
| 882 |
|
SSH_notify_disconnecting(pvar, msg); |
| 883 |
|
} |
| 884 |
AUTH_notify_disconnecting(pvar); |
AUTH_notify_disconnecting(pvar); |
| 885 |
HOSTS_notify_disconnecting(pvar); |
HOSTS_notify_disconnecting(pvar); |
| 886 |
|
|