Example #1
0
        protected virtual void OnClientConnected(ClientConnectedEventArgs e)
        {
            var handler = ClientConnected;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
 private void listener_ClientConnected(object sender, ClientConnectedEventArgs e)
 {
     GlassClientManager.RegisterClient(e.Client);
     e.Client.WriteLine(GlassProtocol.RequestCurrentDirectory);
 }