Exemplo n.º 1
0
        public hubproxy reg_hub(juggle.Ichannel ch, string uuid)
        {
            hubproxy _hubproxy = new hubproxy(ch);

            hubs.Add(ch, _hubproxy);
            hubs_uuid.Add(uuid, _hubproxy);

            return(_hubproxy);
        }
Exemplo n.º 2
0
        public void disconnect_hub(string client_uuid, string hub_name)
        {
            hubproxy _hubproxy = _hubmanager.get_hub(hub_name);

            if (_hubproxy != null)
            {
                _hubproxy.client_disconnect(client_uuid);
                _clientmanager.unreg_client_hub(juggle.Imodule.current_ch);
            }
        }
Exemplo n.º 3
0
        public void connect_hub(string client_uuid, string hub_name)
        {
            hubproxy _hubproxy = _hubmanager.get_hub(hub_name);

            if (_hubproxy != null)
            {
                _clientmanager.reg_client_hub(client_uuid, _hubproxy);
                _hubproxy.client_connect(client_uuid);
            }
        }
Exemplo n.º 4
0
        public hubproxy reg_hub(juggle.Ichannel ch, string uuid, string hub_name)
        {
            hubproxy _hubproxy = new hubproxy(ch, uuid, hub_name);

            hubs[ch]                = _hubproxy;
            hubs_uuid[uuid]         = _hubproxy;
            hubs_hub_name[hub_name] = _hubproxy;

            return(_hubproxy);
        }
Exemplo n.º 5
0
        public hubproxy reg_hub(juggle.Ichannel ch, string uuid, string hub_name)
        {
            hubproxy _hubproxy = new hubproxy(ch, uuid, hub_name);

            hubs.Add(ch, _hubproxy);
            hubs_uuid.Add(uuid, _hubproxy);
            hubs_hub_name.Add(hub_name, _hubproxy);

            return(_hubproxy);
        }
Exemplo n.º 6
0
        public void connect_sucess(string client_uuid)
        {
            clientproxy _clientproxy = _clientmanager.get_clientproxy(client_uuid);

            if (_clientproxy != null)
            {
                hubproxy _hubproxy = _hubmanager.get_hub(juggle.Imodule.current_ch);
                if (_hubproxy != null)
                {
                }
            }
        }
Exemplo n.º 7
0
        public void reg_client_hub(string uuid, hubproxy _hubproxy)
        {
            var _clientproxy = get_clientproxy(uuid);

            if (_clientproxy != null)
            {
                if (!clientproxy_hubproxy.ContainsKey(_clientproxy))
                {
                    clientproxy_hubproxy.Add(_clientproxy, new List <hubproxy>());
                }

                clientproxy_hubproxy[_clientproxy].Add(_hubproxy);
            }
        }
Exemplo n.º 8
0
        public void forward_client_call_hub(string hub_name, string module, string func, ArrayList argv)
        {
            hubproxy _hubproxy = _hubmanager.get_hub(hub_name);

            if (_hubproxy != null)
            {
                var _proxy = _clientmanager.get_clientproxy(juggle.Imodule.current_ch);
                if (_proxy != null)
                {
                    string uuid = _clientmanager.get_client_uuid(_proxy);
                    _hubproxy.client_call_hub(uuid, module, func, argv);
                }
            }
        }
Exemplo n.º 9
0
        public void reg_hub(string uuid, string hub_name)
        {
            hubproxy _hubproxy = _hubmanager.reg_hub(juggle.Imodule.current_ch, uuid, hub_name);

            _hubproxy.reg_hub_sucess();
        }