#define FIN 4
#define RST 8
+#define AUX_INIT 1
+#define AUX_FRAME 2
+#define AUX_SAK 3
+#define AUX_TIMESTAMP 4
+
#define NSACKS 4
#define DEFAULT_SNDBUFSIZE 4096
#define DEFAULT_MAXSNDBUFSIZE 131072
struct buffer {
char *data;
+ uint32_t offset;
uint32_t used;
uint32_t size;
uint32_t maxsize;
struct utcp_connection {
void *priv;
struct utcp *utcp;
+ uint32_t flags;
bool reapable;
bool nodelay;
bool keepalive;
+ bool shut_wr;
// Congestion avoidance state
utcp_pre_accept_t pre_accept;
utcp_send_t send;
+ // Packet buffer
+
+ void *pkt;
+
// Global socket options
uint16_t mtu;