aboutsummaryrefslogtreecommitdiff
path: root/src/old/tests/httpsrv/main.cpp
blob: 2f1563c239f631d2e9b282373b8c88bbbe27ac58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "connectionmanager.h"
#include "httpconnectionmonitor.h"

int main()
{
	printf("Starting server...\n");

	ConnectionManager srv;
	HttpConnectionMonitor http;

	srv.setConnectionMonitor( &http );

	printf("Listening on port 7331\n");
	srv.startServer( 7331 );

	for(;;)
	{
		srv.scanConnections( 5000, false );
	}
	
	return 0;
}