Пример #1
0
        void sclient_DataReceived(object sender, SockMessageEventArgs e)
        {
            SocketClient sdr = (SocketClient)sender;

            if (sdr == null || !sdr.IsConnected)
            {
                return;
            }

            OnDataReceived(new ClientEventArgs(sdr, e.SockMessage));
        }
Пример #2
0
 /// <summary>
 /// Raises the DataSent event
 /// </summary>
 /// <param name="messageEventArgs"></param>
 protected override void OnDataSent(SockMessageEventArgs e)
 {
     DataSent?.Invoke(this, e);
 }
Пример #3
0
 /// <summary>
 /// Raises the DataReceived event
 /// </summary>
 /// <param name="messageEventArgs"></param>
 protected override void OnDataReceived(SockMessageEventArgs e)
 {
     DataReceived?.Invoke(this, e);
 }
Пример #4
0
 protected abstract void OnDataSent(SockMessageEventArgs e);
Пример #5
0
 protected abstract void OnDataReceived(SockMessageEventArgs e);