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

Class RemoteDebuggerClient

LuaSTGPlus/RemoteDebuggerClient.h:9–38  ·  view source on GitHub ↗

@brief Զ�˵������ͻ���

Source from the content-addressed store, hash-verified

7{
8 /// @brief Զ�˵������ͻ���
9 class RemoteDebuggerClient
10 {
11 private:
12 enum class UdpMessageType
13 {
14 PerformanceUpdate = 1,
15 ResourceLoaded = 2,
16 ResourceRemoved = 3,
17 ResourceCleared = 4
18 };
19 private:
20 SOCKET S;
21 fuShort m_DebuggerPort;
22 fuInt m_DebuggerAddr;
23
24 std::shared_ptr<Bencode::Value> m_SendPacketCache;
25 private:
26 void sendUdpMessage(UdpMessageType type, std::shared_ptr<Bencode::Value> val);
27 public:
28 void SendPerformanceCounter(float FPS, float ObjCount, float FrameTime, float RenderTime);
29 void SendResourceLoadedHint(ResourceType Type, ResourcePoolType PoolType, const char* Name, const wchar_t* Path, float LoadingTime);
30 void SendResourceRemovedHint(ResourceType Type, ResourcePoolType PoolType, const char* Name);
31 void SendResourceClearedHint(ResourcePoolType PoolType);
32 protected:
33 RemoteDebuggerClient& operator=(const RemoteDebuggerClient&);
34 RemoteDebuggerClient(const RemoteDebuggerClient&);
35 public:
36 RemoteDebuggerClient(fuShort port, const char* addr="127.0.0.1");
37 ~RemoteDebuggerClient();
38 };
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected