private final SocketMonitor monitor;
private volatile boolean cancelled;
public StpThread(int port, ConnectionHandler handler, EventHandler eventHandler,
boolean manualConnect) throws IOException {
monitor = new SocketMonitor();
listener = new StpConnectionListener(port, handler, eventHandler, manualConnect, monitor);
setName("stp-thread");
}