Beispiel #1
0
        protected internal void OnClientConnect(TcpSocketEventArgs arg)
        {
            clients.Add(arg.Client);
            arg.Client.Load();

            ClientConnect?.Invoke(this, arg);
        }
Beispiel #2
0
        protected internal void OnClientDisconect(TcpSocketEventArgs arg)
        {
            ClientDisconnect?.Invoke(this, arg);

            clients.Remove(arg.Client);
        }