void udp_peer_DataReceived(object sender, UdpReceiveEventArgs e) { EzLogger.GlobalLogger.debug(string.Format("udp data from {0}: {1}", e.RemoteEndPoint, e.Data == null ? 0 : e.Data.Length)); IEnumerable <IScsMessage> msgs = this.WireProtocol.CreateMessages(e.Data); foreach (var v in msgs) { OnMessageReceived(e.RemoteEndPoint, v); } }
void udp_peer_DataReceived(object sender, UdpReceiveEventArgs e) { EzLogger.GlobalLogger.debug(string.Format("udp data from {0}: {1}", e.RemoteEndPoint, e.Data == null ? 0 : e.Data.Length)); IEnumerable<IScsMessage> msgs = this.WireProtocol.CreateMessages(e.Data); foreach (var v in msgs) { OnMessageReceived(e.RemoteEndPoint, v); } }