Пример #1
0
        // 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;
            dataContent.SockController = _sockController;

            e.Handler.GetProtocolStack().FromLowLayerToHere(dataContent);
        }
Пример #2
0
 private void OnSockMgrReceive(object sender, SockMgrReceiveEventArgs e)
 {
     SockMgrReceiveEvent?.Invoke(sender, e);
 }