bool wxLuaDebuggerBase::CheckSocketRead(bool read_ok, const wxString& msg) { if (!read_ok) { wxLuaDebuggerEvent debugEvent(wxEVT_WXLUA_DEBUGGER_DEBUGGEE_DISCONNECTED, this); debugEvent.SetMessage(wxString::Format(wxT("Failed reading from the debugger socket. %s %s\n"), msg.c_str(), GetSocketErrorMsg().c_str())); SendEvent(debugEvent); } return read_ok; }
bool wxLuaDebuggerBase::CheckSocketWrite(bool write_ok, const wxString& msg) { if (!write_ok) { wxLuaDebuggerEvent debugEvent(wxEVT_WXLUA_DEBUGGER_DEBUGGEE_DISCONNECTED, this); debugEvent.SetMessage(wxString::Format(wxT("Failed writing to the debugger socket. %s\n%s"), msg.c_str(), GetSocketErrorMsg().c_str())); SendEvent(debugEvent); } return write_ok; }
wxString wxGISLocalClientConnection::GetLastError(void) const { return wxString::Format(_("Error (%d): %s"), m_pSock->LastError(), GetSocketErrorMsg(m_pSock->LastError())); }