X-Git-Url: http://git.meshlink.io/?p=utcp;a=blobdiff_plain;f=utcp.h;h=c570b3231be88b06e98c4d47cca5e35cd8d762c3;hp=fe4c7205e726bd0c3a18f76d122e5e9d9f7e43a2;hb=79771fe547709fd77c9364f843ab00ea9e7d6a25;hpb=f1035e971bb894203bdfba6cafbaf0bb30f197eb diff --git a/utcp.h b/utcp.h index fe4c720..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); @@ -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