}
int utcp_close(struct utcp_connection *c) {
+ if(c->rcvbuf.used) {
+ fprintf(stderr, "UTCP channel closed with stuff in receive buffer\n");
+ return reset_connection(c) ? 0 : -1;
+ }
+
if(utcp_shutdown(c, SHUT_RDWR) && errno != ENOTCONN) {
return -1;
}