projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stop plink losing data at start of session
[u/mdw/putty]
/
putty.h
diff --git
a/putty.h
b/putty.h
index
a813511
..
f89aeac
100644
(file)
--- a/
putty.h
+++ b/
putty.h
@@
-109,6
+109,8
@@
typedef struct {
void (*send) (char *buf, int len);
void (*size) (void);
void (*special) (Telnet_Special code);
void (*send) (char *buf, int len);
void (*size) (void);
void (*special) (Telnet_Special code);
+ SOCKET (*socket) (void);
+ int (*sendok) (void);
} Backend;
GLOBAL Backend *back;
} Backend;
GLOBAL Backend *back;
@@
-133,6
+135,7
@@
typedef struct {
int close_on_exit;
int warn_on_close;
/* SSH options */
int close_on_exit;
int warn_on_close;
/* SSH options */
+ char remote_cmd[512];
int nopty;
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
char keyfile[FILENAME_MAX];
int nopty;
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
char keyfile[FILENAME_MAX];
@@
-196,6
+199,14
@@
typedef struct {
#define DEFAULT_PORT 22
#endif
#define DEFAULT_PORT 22
#endif
+/*
+ * Some global flags denoting the type of application.
+ */
+#define FLAG_VERBOSE 0x0001
+#define FLAG_WINDOWED 0x0002
+#define FLAG_CONNECTION 0x0004
+GLOBAL int flags;
+
GLOBAL Config cfg;
GLOBAL int default_protocol;
GLOBAL int default_port;
GLOBAL Config cfg;
GLOBAL int default_protocol;
GLOBAL int default_port;