libexpress 0.0.1
Express Server Framework in C
Loading...
Searching...
No Matches
express.h
Go to the documentation of this file.
1
12#ifndef __LIBEXPRESS_H
13#define __LIBEXPRESS_H 1
14
15/* Header Includes */
16#include "router.h"
17
18// TODO: Fix memory leaks
19
24#define MAX_CON 100
25
39static int server_socket;
40
47server_t* server_new(void);
48
66void server_listen(server_t *server, port_t port);
67
68#endif
server_t * server_new(void)
Creates a new server instance.
Definition: express.c:34
void server_listen(server_t *server, port_t port)
Makes the server instance listen for HTTP requests at specified port.
Definition: express.c:176
This contains the router functions.
u_int16_t port_t
Port number.
Definition: router.h:25
Router.
Definition: router.h:58