我
This commit is contained in:
parent
02a2780678
commit
b15221cb68
1
.gitignore
vendored
1
.gitignore
vendored
@ -342,3 +342,4 @@ ASALocalRun/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
sourceinsight/
|
||||
|
@ -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;
|
||||
|
8
examples/proto_debuger/conanfile.txt
Normal file
8
examples/proto_debuger/conanfile.txt
Normal 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
|
||||
|
@ -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)
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user