aboutsummaryrefslogtreecommitdiff
path: root/src/test/teltest/main.cpp
blob: ce968c4145d1bdb2829c55d70ab9d8c8c48cdb32 (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 "telnetmonitor.h"

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

	ConnectionManager srv;
	TelnetMonitor telnet;

	srv.setConnectionMonitor( &telnet );

	srv.startServer( 4001, 40 );

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