src/server/httplistener.c

changeset 4
998844b5ed25
parent 1
3c066d52342d
child 9
30e51941a673
equal deleted inserted replaced
3:137197831306 4:998844b5ed25
148 HttpListener *listener = acceptor->listener; 148 HttpListener *listener = acceptor->listener;
149 149
150 for (;;) { 150 for (;;) {
151 /* accept connections */ 151 /* accept connections */
152 struct sockaddr_in ca; 152 struct sockaddr_in ca;
153 int length = sizeof(ca); 153 socklen_t length = sizeof(ca);
154 int clientfd; 154 int clientfd;
155 155
156 /* accept a connection */ 156 /* accept a connection */
157 clientfd = accept( 157 clientfd = accept(
158 listener->server_socket, 158 listener->server_socket,

mercurial