protected void RecevidLog(string ip, byte[] buffer) { DeviceLog.Log($">>>>>>>{ip}>接收数据:{BitConverter.ToString(buffer)}"); }
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)}"); }