Ejemplo n.º 1
0
        public virtual void ___discon___(Victem victem)
        {
            var handler = OnVictemDisconnected;

            if (handler != null)
            {
                OnVictemDisconnected?.Invoke(victem);
            }
        }
Ejemplo n.º 2
0
        public virtual void ___recv___(Victem victem, string packet)
        {
            var handler = OnPacketReceived;

            if (handler != null)
            {
                OnPacketReceived?.Invoke(victem, packet);
            }
        }
Ejemplo n.º 3
0
        public virtual void ACPT(IAsyncResult ar)
        {
            TcpServer _ = (TcpServer)ar.AsyncState;

            try
            {
                var __ = new Victem(_.__listn__.EndAcceptTcpClient(ar));
                __victmes__[__victmes__.Length + 1] = __;
            }
            catch (Exception ___)
            {
                throw ___;
            }
            finally
            {
                if (__listn__ != null)
                {
                    __listn__.BeginAcceptTcpClient(ACPT, this);
                }
            }
        }