16 lines
344 B
C
16 lines
344 B
C
#include <stdio.h>
|
|
#include <errno.h>
|
|
#include <sys/socket.h>
|
|
#include <arpa/inet.h>
|
|
#include <netdb.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
#include "lfnetwork.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
Server *server = new_server(SERVERTYPE_TCP, "18632", handler_tcp_echo);
|
|
serve(server, DEFAULT_BACKLOG);
|
|
delete_server(server);
|
|
}
|