Exemplo n.º 1
0
        protected virtual void OnAcceptConnection(Socket socket)
        {
            var xSocket = new XSocket(socket);

            _clientsConnected.Add(xSocket);
            OnAccept?.Invoke(this, new XSocketArgs(xSocket));
        }
Exemplo n.º 2
0
 public XSocketArgs(XSocket xSocket)
 {
     XSocket = xSocket;
 }