| 7 | #if (defined LDEVVERSION) || (defined LDEBUG) |
| 8 | |
| 9 | RemoteDebuggerClient::RemoteDebuggerClient(fuShort p, const char* addr) |
| 10 | : m_DebuggerPort(p) |
| 11 | { |
| 12 | WSADATA tData = { 0 }; |
| 13 | int tRet = WSAStartup(MAKEWORD(2, 2), &tData); |
| 14 | if (tRet != 0) |
| 15 | throw fcyException("RemoteDebuggerClient::RemoteDebuggerClient", "WSAStartup failed."); |
| 16 | |
| 17 | // ����socket |
| 18 | S = socket(AF_INET, SOCK_DGRAM, 0); |
| 19 | if (!S) |
| 20 | throw fcyException("RemoteDebuggerClient::RemoteDebuggerClient", "Create socket failed."); |
| 21 | |
| 22 | // ���õ�������ַ |
| 23 | m_DebuggerAddr = inet_addr(addr); |
| 24 | |
| 25 | // �������ݰ� |
| 26 | m_SendPacketCache = make_shared<Value>(ValueType::Dictionary); |
| 27 | m_SendPacketCache->VDict["processId"] = make_shared<Value>(static_cast<int>(GetCurrentProcessId())); |
| 28 | } |
| 29 | |
| 30 | RemoteDebuggerClient::~RemoteDebuggerClient() |
| 31 | { |
nothing calls this directly
no outgoing calls
no test coverage detected