X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp.h;h=c570b3231be88b06e98c4d47cca5e35cd8d762c3;hb=275129c9d08b2d29529b2f9d039198168aeb52a7;hp=5d646762437cafe093796d787d78ee45bd0e5532;hpb=113cc69639c8148cb4ffb488065db41c09a861b3;p=utcp diff --git a/utcp.h b/utcp.h index 5d64676..c570b32 100644 --- 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