public static void main( String[] args )
	{
		int port=5000;
		if( args.length > 1 )
		{
			System.out.println( "Usage: SimpleSocketServer <port>" );
			System.exit( 0 );
		}
		if( args.length == 1 )
			port = Integer.parseInt( args[ 0 ] );
		System.out.println( "Start server on port: " + port );
		ServerMain server = new ServerMain( port );
		server.startServer();

		// Automatically shutdown in 1 minute
		try
		{
			Thread.sleep( 60000 );
		}
		catch( Exception e )
		{
			e.printStackTrace();
		}

		server.stopServer();
	}