testserver.c 524 Bytes
#include <stdio.h>
#include <socket.h>
#include <string.h>

#include "server.h"
#include "logger.h"
#include "http/request_parser.h"

#include "signalHandling.h"

#include "interface/class.h"

int
main()
{
	Logger            logger = new(LoggerStderr, LOGGER_INFO);
	HttpRequestParser parser = new(HttpRequestParser);
	Server            server = new(Server, logger, parser, 11212, SOMAXCONN);

	init_signals();
	serverRun(server);

	delete(&server);
	delete(&logger);
	delete(&parser);

	return 0;
}

// vim: set ts=4 sw=4: