Пример #1
0
	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;
		}
	}
Пример #2
0
	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("> ");
			}
		}
	}
Пример #3
0
	void onRemoteDisconnect(const RemoteEvent* evt)
	{
		_console->setPrompt("idle> ");
	}
Пример #4
0
	void onRemoteConnect(const RemoteEvent* evt)
	{
		_console->setPrompt("attaching> ");
	}