-// Closes all the opened connections
-void utcp_abort_all_connections(struct utcp *utcp) {
- if(!utcp) {
- return;
- }
-
- for(int i = 0; i < utcp->nconnections; i++) {
- struct utcp_connection *c = utcp->connections[i];
-
- if(c->recv) {
- errno = 0;
- c->recv(c, NULL, 0);
- }
-
- if(utcp_reset_connection(c) != -1) {
- c->reapable = false;
- }
- }
-
- return;
-}
-
-int utcp_reset_connection(struct utcp_connection *c) {