コード例 #1
0
ファイル: ClientConnector.cs プロジェクト: jmenzel/AI-P
        private void RegisterProxyChannel()
        {
            Hashtable ht = new Hashtable();
            ht["name"] = "ProxyChannel" + this.HESName;
            ht["port"] = this.HESPort+1000;

            TcpChannel channel = new TcpChannel(ht, null, null);
            ChannelServices.RegisterChannel(channel, false);

            object obj = Activator.GetObject(typeof(IProxyServer), "tcp://"+proxyIp+":"+proxyPort+"/ProxyServerService");
            proxy = (IProxyServer)obj;
            proxy.sendServerInfo(info);
        }