hax/src/http.c
/**
 * Retrieve the polling file descriptor set from the HTTP server.
 *   @server: The server.
 *   @poll: Optional. The pointer where to store the poll information.
 *   &returns: The number of file descriptors.
 */
Retrieve the polling file descriptor set from the HTTP server.
@server: The server.
@poll: Optional. The pointer where to store the poll information.
&returns: The number of file descriptors.
Retrieve the polling file descriptor set from the HTTP server . @server : The server . @poll : Optional . The pointer where to store the poll information . &returns : The number of file descriptors .
unsigned int http_server_poll(struct http_server_t *server, struct sys_poll_t *poll)
{
	unsigned int i;
	struct http_client_t *client;
	if(poll != NULL) {
		poll[0] = tcp_server_poll(server->tcp);
		for(i = 1, client = server->client; client != NULL; i++, client = client->next)
			poll[i] = tcp_client_poll(client->tcp);
	}
	return 1 + server->cnt;
}
unsigned int http_server_poll ( struct http_server_t * server , struct sys_poll_t * poll ) { unsigned int i ; struct http_client_t * client ; if ( poll != NULL ) { poll [ 0 ] = tcp_server_poll ( server -> tcp ) ; for ( i = 1 , client = server -> client ; client != NULL ; i ++ , client = client -> next ) poll [ i ] = tcp_client_poll ( client -> tcp ) ; } return 1 + server -> cnt ; }
Retrieve the polling file descriptor set from the HTTP server.
Retrieve the polling file descriptor set from the HTTP server .