|
server 0.0.1
basicserverinfrastructure
|
#include <string.h>#include "server.h"#include "interface/class.h"
Go to the source code of this file.
Functions | |
| void | serverCloseConn (Server this, unsigned int i) |
| void serverCloseConn | ( | Server | this, |
| unsigned int | i | ||
| ) |
Definition at line 7 of file close_conn.c.
{
int fd = (this->fds)[i].fd;
delete(&((this->conns)[fd].sock));
delete(&((this->conns)[fd].reader));
memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
(this->fds)[i].events = 0;
(this->fds)[i].revents = 0;
(this->fds)[i].fd = 0;
this->ndel++;
// CLEAR_CONN(this, i);
// this->nfds--;
}
