示例#1
0
        private void SegmentParser_DataReceived(object sender, NetDataReceivedEventArgs e)
        {
            MessageSegmentParser parser = (MessageSegmentParser)sender;

            RemoveSegmentParser(parser);
            OnMessageReceived(e);
        }
示例#2
0
 private void OnMessageReceived(NetDataReceivedEventArgs e)
 {
     if (DataReceived != null)
     {
         DataReceived(this, e);
     }
 }