diff --git a/.gitignore b/.gitignore index 415690b2..ad5415e3 100644 --- a/.gitignore +++ b/.gitignore @@ -342,3 +342,4 @@ ASALocalRun/ # BeatPulse healthcheck temp database healthchecksdb +sourceinsight/ diff --git a/examples/proto_debuger/base_form.cpp b/examples/proto_debuger/base_form.cpp index c2201ad3..8064f5f5 100644 --- a/examples/proto_debuger/base_form.cpp +++ b/examples/proto_debuger/base_form.cpp @@ -36,8 +36,6 @@ int gTcpServerCnt = 0; int gTcpClientCnt = 0; LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) { - //wprintf(L"recv message 0x%x\r\n", uMsg); - if (uMsg == WM_ADD_UART_CLOSE) { wprintf(L"close %s\r\n", ((wstring*)wParam)->c_str()); mRightShow->SetVisible(false); @@ -175,6 +173,12 @@ LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) mMonitorNewSelect->Close(); } + if (uMsg == WM_ADD_UDP_CLIENT_MONITOR) { + + } + if (uMsg == WM_ADD_UDP_SERVER_MONITOR) { + + } if (uMsg == WM_ADD_UART_MONITOR) { printf("add monitor"); UartInfo* p = (UartInfo*)wParam; diff --git a/examples/proto_debuger/conanfile.txt b/examples/proto_debuger/conanfile.txt new file mode 100644 index 00000000..415f970a --- /dev/null +++ b/examples/proto_debuger/conanfile.txt @@ -0,0 +1,8 @@ +[requires] +libevent/2.1.2 + +[imports] +lib, *.lib -> ./third/lib # Copies all dll files from packages bin folder to my "bin" folder +include, *.h -> ./third/include # Copies all dll files from packages bin folder to my "bin" folder +include, *.hpp -> ./third/include # Copies all dll files from packages bin folder to my "bin" folder + diff --git a/examples/proto_debuger/msgdef.h b/examples/proto_debuger/msgdef.h index 72905872..6ae918b5 100644 --- a/examples/proto_debuger/msgdef.h +++ b/examples/proto_debuger/msgdef.h @@ -7,3 +7,6 @@ #define WM_ADD_UART_RECVDATA (WM_USER + 5) #define WM_ADD_UART_CLOSE (WM_USER + 6) #define WM_ADD_TCPSERVER_MONITOR (WM_USER + 7) + +#define WM_ADD_UDP_CLIENT_MONITOR (WM_USER + 8) +#define WM_ADD_UDP_SERVER_MONITOR (WM_USER + 9) diff --git a/examples/proto_debuger/new_monitor_form.cpp b/examples/proto_debuger/new_monitor_form.cpp index 1a1c070d..3acaaf25 100644 --- a/examples/proto_debuger/new_monitor_form.cpp +++ b/examples/proto_debuger/new_monitor_form.cpp @@ -133,6 +133,15 @@ void NewMonitorForm::InitWindow() } } + if (m_combo_type->GetText() == L"udp client") { + wprintf(L"%s\r\n", m_ip_select->GetText().c_str()); + wprintf(L"%s\r\n", m_port_select->GetText().c_str()); + + } + if (m_combo_type->GetText() == L"udp server") { + wprintf(L"%s\r\n", m_ip_select->GetText().c_str()); + wprintf(L"%s\r\n", m_port_select->GetText().c_str()); + } if (m_combo_type->GetText() == L"tcp client") { wprintf(L"%s\r\n", m_ip_select->GetText().c_str()); wprintf(L"%s\r\n", m_port_select->GetText().c_str());