]> git.meshlink.io Git - utcp/blobdiff - utcp.h
Call the poll callback with 0 whenever a connection is closed.
[utcp] / utcp.h
diff --git a/utcp.h b/utcp.h
index 5d646762437cafe093796d787d78ee45bd0e5532..c570b3231be88b06e98c4d47cca5e35cd8d762c3 100644 (file)
--- a/utcp.h
+++ b/utcp.h
@@ -49,6 +49,7 @@ struct utcp_connection;
 #define UTCP_RELIABLE 2
 #define UTCP_FRAMED 4
 #define UTCP_DROP_LATE 8
+#define UTCP_NO_PARTIAL 16
 
 #define UTCP_TCP 3
 #define UTCP_UDP 0
@@ -89,6 +90,8 @@ extern void utcp_set_mtu(struct utcp *utcp, uint16_t mtu);
 
 extern void utcp_reset_timers(struct utcp *utcp);
 
+extern void utcp_offline(struct utcp *utcp, bool offline);
+
 // Per-socket options
 
 extern size_t utcp_get_sndbuf(struct utcp_connection *connection);
@@ -110,4 +113,6 @@ extern void utcp_set_keepalive(struct utcp_connection *connection, bool keepaliv
 
 extern size_t utcp_get_outq(struct utcp_connection *connection);
 
+extern void utcp_expect_data(struct utcp_connection *connection, bool expect);
+
 #endif