コード例 #1
0
 public void RcvFromTapSession(object sender, DataRcvEvent e)
 {
     if (this.RemoteSession.IsConnected)
     {
         this.RemoteSession.SendToRemote(e.DataBuffer);
     }
 }
コード例 #2
0
        private void OnDataRcv(object state)
        {
            if (m_Receive_Event == null)
            {
                Debug.WriteLine("No rcv listeners on session reader", this);
                return;
            }

            DataRcvEvent ev = new DataRcvEvent((byte[])state);

            this.m_Receive_Event.Invoke(this, ev);
        }
コード例 #3
0
        /// <summary>
        /// Got something from the Remote source, Send it to listen(ers)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void RcvFromRemoteSession(object sender, DataRcvEvent e)
        {
            if (this.TapSession != null && this.TapSession.IsConnected)
            {
                this.TapSession.SendToRemote(e.DataBuffer);
            }

            if (!this.m_TapBlockRcvFromRemote)
            {
                if (this.ClientSession != null && this.ClientSession.IsConnected)
                {
                    this.ClientSession.SendToRemote(e.DataBuffer);
                }
            }
        }