Commit 67316fd3 authored by barnettZQG's avatar barnettZQG

add log

parent 66291aec
......@@ -6,6 +6,9 @@ func TestCreateTime(t *testing.T) {
t.Log(createTime())
}
func TestCRC32(t *testing.T) {
t.Log(CRC32(Hextob("F1B000000006000199014C000219100000ED88621203")))
}
func TestResponseMessage(t *testing.T) {
t.Log(BytetoH(responseMessage(Hextob("F1B000000006000199014C000219100000ED8862120362D81046"))))
}
......@@ -23,8 +23,9 @@ func udpProcess(conn *net.UDPConn, index int) {
if string(messageByte) == "Healthcheck udp check" {
return
}
fmt.Printf("resquest: %X\n", messageByte)
response := responseMessage(messageByte)
fmt.Printf("%X\n", response)
fmt.Printf("response: %X\n", response)
conn.WriteToUDP(response, rAddr)
<-limitChan
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment