server_close_conn.c 221 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 #include "server.h" void server_close_conn(SERVER this, unsigned int i) { memmove(&((this->fds)[i]), &((this->fds)[i+1]), POLL_FD_MOVE(i+1)); this->nfds--; delete(&((this->conns)[i].sock)); } // vim: set ts=4 sw=4: