Improve socket error handling so that a socket error isn't an
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index 4f9bfa4..20eea8b 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -85,6 +85,12 @@ GLOBAL int session_closed;
 GLOBAL char *logfile;
 
 /*
+ * Window handles for the dialog boxes that can be running during a
+ * PuTTY session.
+ */
+GLOBAL HWND logbox;
+
+/*
  * I've just looked in the windows standard headr files for WM_USER, there
  * are hundreds of flags defined using the form WM_USER+123 so I've 
  * renumbered this NETEVENT value and the two in window.c
@@ -137,10 +143,10 @@ typedef struct {
     /* Basic options */
     char host[512];
     int port;
-    enum { PROT_RAW, PROT_TELNET, PROT_SSH } protocol;
+    enum { PROT_RAW, PROT_TELNET, PROT_RLOGIN, PROT_SSH } protocol;
     int close_on_exit;
     int warn_on_close;
-    int ping_interval;
+    int ping_interval;                 /* in seconds */
     /* SSH options */
     char remote_cmd[512];
     int nopty;
@@ -156,6 +162,7 @@ typedef struct {
     char termspeed[32];
     char environmt[1024];                    /* VAR\tvalue\0VAR\tvalue\0\0 */
     char username[32];
+    char localusername[32];
     int rfc_environ;
     /* Keyboard options */
     int bksp_is_delete;
@@ -195,6 +202,7 @@ typedef struct {
     int fontcharset;
     char logfilename[FILENAME_MAX];
     int logtype;
+    int hide_mouseptr;
     /* Colour options */
     int try_palette;
     int bold_colour;
@@ -208,6 +216,9 @@ typedef struct {
     int xlat_88592w1250;
     int xlat_88592cp852;
     int xlat_capslockcyr;
+    /* X11 forwarding */
+    int x11_forward;
+    char x11_display[128];
 } Config;
 
 /*
@@ -334,6 +345,12 @@ void term_copyall(void);
 extern Backend raw_backend;
 
 /*
+ * Exports from rlogin.c.
+ */
+
+extern Backend rlogin_backend;
+
+/*
  * Exports from telnet.c.
  */