public void RcvFromTapSession(object sender, DataRcvEvent e) { if (this.RemoteSession.IsConnected) { this.RemoteSession.SendToRemote(e.DataBuffer); } }
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); }
/// <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); } } }