void onRemoteNotify(const RemoteNotifyEvent* evt) { switch (evt->command) { case NT_SVR_LOG_ENTRY: onServerLogEntry(evt); break; case NT_SVR_BREAK: _console->setPrompt("debug> "); break; case NT_SVR_RESUME: _console->setPrompt("> "); break; } }
void onRemoteResponse(const RemoteResponseEvent* evt) { switch (evt->command) { case RQ_ATTACH: if (evt->code < 0) { String msg = evt->param.toString(); LOG(0, "[nit-rsh] Can't attach debugger (%d) %s\n", evt->code, msg.c_str()); evt->peer->disconnect(); break; } else { _console->setPrompt("> "); } } }
void onRemoteDisconnect(const RemoteEvent* evt) { _console->setPrompt("idle> "); }
void onRemoteConnect(const RemoteEvent* evt) { _console->setPrompt("attaching> "); }