This commit is contained in:
zcy 2022-02-07 10:06:38 +08:00
parent 02a2780678
commit b15221cb68
5 changed files with 27 additions and 2 deletions

1
.gitignore vendored
View File

@ -342,3 +342,4 @@ ASALocalRun/
# BeatPulse healthcheck temp database # BeatPulse healthcheck temp database
healthchecksdb healthchecksdb
sourceinsight/

View File

@ -36,8 +36,6 @@ int gTcpServerCnt = 0;
int gTcpClientCnt = 0; int gTcpClientCnt = 0;
LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
//wprintf(L"recv message 0x%x\r\n", uMsg);
if (uMsg == WM_ADD_UART_CLOSE) { if (uMsg == WM_ADD_UART_CLOSE) {
wprintf(L"close %s\r\n", ((wstring*)wParam)->c_str()); wprintf(L"close %s\r\n", ((wstring*)wParam)->c_str());
mRightShow->SetVisible(false); mRightShow->SetVisible(false);
@ -175,6 +173,12 @@ LRESULT BasicForm::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
mMonitorNewSelect->Close(); mMonitorNewSelect->Close();
} }
if (uMsg == WM_ADD_UDP_CLIENT_MONITOR) {
}
if (uMsg == WM_ADD_UDP_SERVER_MONITOR) {
}
if (uMsg == WM_ADD_UART_MONITOR) { if (uMsg == WM_ADD_UART_MONITOR) {
printf("add monitor"); printf("add monitor");
UartInfo* p = (UartInfo*)wParam; UartInfo* p = (UartInfo*)wParam;

View File

@ -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

View File

@ -7,3 +7,6 @@
#define WM_ADD_UART_RECVDATA (WM_USER + 5) #define WM_ADD_UART_RECVDATA (WM_USER + 5)
#define WM_ADD_UART_CLOSE (WM_USER + 6) #define WM_ADD_UART_CLOSE (WM_USER + 6)
#define WM_ADD_TCPSERVER_MONITOR (WM_USER + 7) #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)

View File

@ -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") { 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_ip_select->GetText().c_str());
wprintf(L"%s\r\n", m_port_select->GetText().c_str()); wprintf(L"%s\r\n", m_port_select->GetText().c_str());