server 0.0.1
basicserverinfrastructure

src/server/close_conn.c

Go to the documentation of this file.
00001 #include <string.h>
00002 
00003 #include "server.h"
00004 #include "interface/class.h"
00005 
00006 void
00007 serverCloseConn(Server this, unsigned int i)
00008 {
00009         int fd = (this->fds)[i].fd;
00010 
00011         delete(&((this->conns)[fd].sock));
00012         delete(&((this->conns)[fd].reader));
00013         memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
00014         (this->fds)[i].events = 0;
00015         (this->fds)[i].revents = 0;
00016         (this->fds)[i].fd = 0;
00017         this->ndel++;
00018 //      CLEAR_CONN(this, i);
00019 //      this->nfds--;
00020 }
00021 
00022 // vim: set ts=4 sw=4:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines