MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / RemoteDebuggerClient

Method RemoteDebuggerClient

LuaSTGPlus/RemoteDebuggerClient.cpp:9–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#if (defined LDEVVERSION) || (defined LDEBUG)
8
9RemoteDebuggerClient::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
30RemoteDebuggerClient::~RemoteDebuggerClient()
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected