public void addClient(EzyClient client)
 {
     lock (clients)
     {
         addClient0(client);
     }
 }
 public EzyClient newDefaultClient(EzyClientConfig config)
 {
     lock (clients)
     {
         EzyClient client = newClient0(config);
         defaultClientName = client.getName();
         return(client);
     }
 }
        public static void Main(string[] args)
        {
            EzyClient client = new EzyClient();

            client.addEventHandler(CONNECTION_SUCCESS, new EzyConnectionSuccessEventHandler());
            client.connect("localhost", 3005);
            while (true)
            {
                Thread.Sleep(3);
                client.processEvents();
            }
        }
 public EzyClient getDefaultClient()
 {
     lock (clients)
     {
         if (defaultClientName == null)
         {
             return(null);
         }
         EzyClient client = getClient0(defaultClientName);
         return(client);
     }
 }
 private void addClient0(EzyClient client)
 {
     this.clients[client.getName()] = client;
 }