libexpress
0.0.1
Express Server Framework in C
Loading...
Searching...
No Matches
include
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
39
static
int
server_socket;
40
47
server_t
*
server_new
(
void
);
48
66
void
server_listen
(
server_t
*server,
port_t
port);
67
68
#endif
server_new
server_t * server_new(void)
Creates a new server instance.
Definition:
express.c:34
server_listen
void server_listen(server_t *server, port_t port)
Makes the server instance listen for HTTP requests at specified port.
Definition:
express.c:176
router.h
This contains the router functions.
port_t
u_int16_t port_t
Port number.
Definition:
router.h:25
router_t
Router.
Definition:
router.h:58
Generated by
1.9.5