continue;
}
+ utcp_recv_t old_recv = c->recv;
+
reset_connection(c);
- if(c->recv) {
+ if(old_recv) {
errno = 0;
- c->recv(c, NULL, 0);
+ old_recv(c, NULL, 0);
}
}
}
}
+size_t utcp_get_sendq(struct utcp_connection *c) {
+ return c->sndbuf.used;
+}
+
+size_t utcp_get_recvq(struct utcp_connection *c) {
+ return c->rcvbuf.used;
+}
+
bool utcp_get_nodelay(struct utcp_connection *c) {
return c ? c->nodelay : false;
}