this.sel = Selector.open();
selectorThread = new SelectorThread(this);
selectorThread.start();
Task t = new RegistrationTask(registrationMbx, sel);
t.setScheduler(this);
t.start();
}
public int listen(int port, Class<? extends SessionTask> sockTaskClass, Scheduler sockTaskScheduler)
throws IOException {
ListenTask t = new ListenTask(port, this, sockTaskClass);