예제 #1
0
        //public abstract AbsProtocolBuilder<TPackage> Clone();

        /// <summary>
        /// 发布收数事件
        /// </summary>
        /// <param name="args"></param>
        protected void PublishData(DataReceivedArgs <TPackage> args)
        {
            if (m_socket != null)
            {
                m_socket.PublishSocketDataReceived(args);
            }
        }
예제 #2
0
 protected void Callback_SocketDataReceived(object sender, DataReceivedArgs <TPackage> args)
 {
     if (OnDataReceivedEvent != null)
     {
         OnDataReceivedEvent(sender, args);
     }
 }
예제 #3
0
 private void Client_OnDataReceivedEvent(object arg1, DataReceivedArgs <TPackage> arg2)
 {
     if (OnDataReceivedEvent != null)
     {
         OnDataReceivedEvent(this, arg2);
     }
 }
예제 #4
0
 internal void PublishSocketDataReceived(DataReceivedArgs <TPackage> args)
 {
     Callback_SocketDataReceived(this, args);
 }