Fennet
Lightweight HTTP server library for C
|
HelloServer example. More...
#include <fennet/lib.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | PORT 8080 |
Functions | |
int | main (int argc, char **argv) |
Entry point of the HelloServer Example. More... | |
HelloServer example.
HelloServer is a simple example of fennet's usage, it serves an HTTP server that always responds with the text "Hello!".
Definition in file main.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Entry point of the HelloServer Example.
*
Definition at line 27 of file main.c.