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

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

	ConnectionManager srv;
	HttpConnectionMonitor http;

	srv.setConnectionMonitor( &http );

	srv.startServer( 7331, 40 );

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