Exemplo n.º 1
0
        public abstract void Disconnect();                   // Disconnect from client.

        // Notify that client connected.
        public void NotifyClientConnectedEvent()
        {
            ClientEvent handler = NotifyConnected;

            NotifyConnected?.Invoke();
        }
Exemplo n.º 2
0
        public abstract void Disconnect();           // Disconnect from the server.

        // Notify that server opened.
        public void NotifyServerConnectedEvent()
        {
            ServerEvent handler = NotifyConnected;

            NotifyConnected?.Invoke();
        }