X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f0fccd51c27b5cbe8990e625a7bdcf9972142d1f..ae0500e538e2fb821ef1ad8529aed7999acf7a19:/putty.h diff --git a/putty.h b/putty.h index 723f1e6b..3fb26bcc 100644 --- a/putty.h +++ b/putty.h @@ -269,7 +269,8 @@ enum { struct backend_tag { const char *(*init) (void *frontend_handle, void **backend_handle, Config *cfg, - char *host, int port, char **realhost, int nodelay); + char *host, int port, char **realhost, int nodelay, + int keepalive); void (*free) (void *handle); /* back->reconfig() passes in a replacement configuration. */ void (*reconfig) (void *handle, Config *cfg); @@ -329,6 +330,7 @@ struct config_tag { int warn_on_close; int ping_interval; /* in seconds */ int tcp_nodelay; + int tcp_keepalives; /* Proxy options */ char proxy_exclude_list[512]; int proxy_dns; @@ -515,6 +517,11 @@ GLOBAL int flags; GLOBAL int default_protocol; GLOBAL int default_port; +/* + * This is set TRUE by cmdline.c iff a session is loaded with "-load". + */ +GLOBAL int loaded_session; + struct RSAKey; /* be a little careful of scope */ /* @@ -648,6 +655,7 @@ void log_reconfig(void *logctx, Config *cfg); void logfopen(void *logctx); void logfclose(void *logctx); void logtraffic(void *logctx, unsigned char c, int logmode); +void logflush(void *logctx); void log_eventlog(void *logctx, const char *string); enum { PKT_INCOMING, PKT_OUTGOING }; void log_packet(void *logctx, int direction, int type,