{
logFile = new PrintStream(new FileOutputStream(context.getLogPath()));
}
fLogFile = logFile;
GenericIOParameters parameters = new GenericIOParameters().port(context.getPort()).ssl(false);
fServer = GenericIOFactory.makeServer(new InternalListener(false), parameters);
GenericIOServer<ImpSCServerConnection> monitor = null;
if ( context.getMonitorPort() != 0 )
{
GenericIOParameters contextParameters = new GenericIOParameters().port(context.getMonitorPort()).ssl(false);
monitor = GenericIOFactory.makeServer(new InternalListener(true), contextParameters);
System.out.println("Monitor active on port " + context.getMonitorPort());
log("Monitor active on port " + context.getMonitorPort(), null, true);
}
fMonitor = monitor;