From: Guus Sliepen Date: Sun, 11 Oct 2015 15:00:17 +0000 (+0200) Subject: Define UTCP_SHUT_RD/WR/RDWR. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=f1467a0aa5dc2f683d657d6b3670c98bcf1b1abe;p=utcp Define UTCP_SHUT_RD/WR/RDWR. Don't rely on for the definitions of SHUT_RD/WR/RDWR, add our own. They should be compatible. --- diff --git a/utcp.h b/utcp.h index 085a287..a29ef96 100644 --- a/utcp.h +++ b/utcp.h @@ -40,6 +40,10 @@ struct utcp; struct utcp_connection; #endif +#define UTCP_SHUT_RD 0 +#define UTCP_SHUT_WR 1 +#define UTCP_SHUT_RDWR 2 + typedef bool (*utcp_pre_accept_t)(struct utcp *utcp, uint16_t port); typedef void (*utcp_accept_t)(struct utcp_connection *utcp_connection, uint16_t port);