src/server/httplistener.c

changeset 9
30e51941a673
parent 4
998844b5ed25
equal deleted inserted replaced
8:f4d56bf9de40 9:30e51941a673
160 &length); 160 &length);
161 if (clientfd == -1) { 161 if (clientfd == -1) {
162 perror("Error: acceptor_thread: accept"); 162 perror("Error: acceptor_thread: accept");
163 continue; 163 continue;
164 } 164 }
165 165
166 /* create Connection object */ 166 /* create Connection object */
167 Connection *conn = malloc(sizeof(Connection)); 167 Connection *conn = malloc(sizeof(Connection));
168 conn->address = ca; 168 conn->address = ca;
169 conn->fd = clientfd; 169 conn->fd = clientfd;
170 170

mercurial