Ejemplo n.º 1
0
 protected void RecevidLog(string ip, byte[] buffer)
 {
     DeviceLog.Log($">>>>>>>{ip}>接收数据:{BitConverter.ToString(buffer)}");
 }
Ejemplo n.º 2
0
 protected void Send(string ip, MessageBase msg, Action <byte[], int, int> action)
 {
     byte[] buffer = msg.Buffer();
     action(buffer, 0, buffer.Length);
     DeviceLog.Log($"<<<<<<<{ip}<发送数据:{BitConverter.ToString(buffer)}");
 }