]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - putty.h
Revamp of EOF handling in all network connections, pipes and other
[PuTTY.git] / putty.h
diff --git a/putty.h b/putty.h
index fad348608e783628d67e287b5159daf56aafba15..79731b1877f722fa0e12b424da1208bf449b153b 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -595,6 +595,11 @@ void ldisc_update(void *frontend, int echo, int edit);
 void update_specials_menu(void *frontend);
 int from_backend(void *frontend, int is_stderr, const char *data, int len);
 int from_backend_untrusted(void *frontend, const char *data, int len);
+/* Called when the back end wants to indicate that EOF has arrived on
+ * the server-to-client stream. Returns FALSE to indicate that we
+ * intend to keep the session open in the other direction, or TRUE to
+ * indicate that if they're closing so are we. */
+int from_backend_eof(void *frontend);
 void notify_remote_exit(void *frontend);
 /* Get a sensible value for a tty mode. NULL return = don't set.
  * Otherwise, returned value should be freed by caller. */