ConsoleApp(ConsoleWindow* cw) { _console = cw; cw->setListener(this); _channelID = 0xdeb6; EventChannel* ch = _remote.getChannel(0); ch->bind(EVT::REMOTE_CONNECT, this, &ConsoleApp::onRemoteConnect); ch->bind(EVT::REMOTE_DISCONNECT, this, &ConsoleApp::onRemoteDisconnect); ch = _remote.openChannel(_channelID, "nit.RemoteDebugClient"); ch->bind(EVT::REMOTE_NOTIFY, this, &ConsoleApp::onRemoteNotify); ch->bind(EVT::REMOTE_RESPONSE, this, &ConsoleApp::onRemoteResponse); }