]> git.meshlink.io Git - utcp/blobdiff - utcp.h
Add a script to generate graphs of the data recorded by the benchmark script.
[utcp] / utcp.h
diff --git a/utcp.h b/utcp.h
index fe4c7205e726bd0c3a18f76d122e5e9d9f7e43a2..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);
@@ -99,6 +102,9 @@ extern size_t utcp_get_rcvbuf(struct utcp_connection *connection);
 extern void utcp_set_rcvbuf(struct utcp_connection *connection, size_t size);
 extern size_t utcp_get_rcvbuf_free(struct utcp_connection *connection);
 
+extern size_t utcp_get_sendq(struct utcp_connection *connection);
+extern size_t utcp_get_recvq(struct utcp_connection *connection);
+
 extern bool utcp_get_nodelay(struct utcp_connection *connection);
 extern void utcp_set_nodelay(struct utcp_connection *connection, bool nodelay);
 
@@ -107,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