// received new message public void OnSockMgrReceive(object sender, SockMgrReceiveEventArgs e) { if (e.Handler != _sockMgr) { throw new Exception("this Responser is not serving the right SockMgr"); } DataContent dataContent = new DataContent(); dataContent.Data = e.Buffer; dataContent.SockMgr = _sockMgr; e.Handler.GetProtocolStack().FromLowLayerToHere(dataContent); }
private void OnSockMgrReceive(object sender, SockMgrReceiveEventArgs e) { SockMgrReceiveEvent?.Invoke(sender, e); }