示例#1
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            Instance instance = new Instance(_engine, Ice.SSLEndpointType.value, "ssl");

            facade.addEndpointFactory(new EndpointFactoryI(instance, Ice.TCPEndpointType.value));
        }
示例#2
0
        internal Plugin(Communicator communicator)
        {
            IceInternal.ITransportPluginFacade facade = IceInternal.Util.GetTransportPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            var instance = new Instance(_engine, EndpointType.SSL, "ssl");

            facade.AddEndpointFactory(new EndpointFactoryI(instance, EndpointType.TCP));
        }
示例#3
0
文件: Plugin.cs 项目: tchernobog/ice
        internal Plugin(Communicator communicator)
        {
            IceInternal.IProtocolPluginFacade facade = IceInternal.Util.GetProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            var instance = new Instance(_engine, SSLEndpointType.Value, "ssl");

            facade.AddEndpointFactory(new EndpointFactoryI(instance, TCPEndpointType.Value));
        }
示例#4
0
文件: PluginI.cs 项目: Crysty-Yui/ice
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // Register the endpoint factory. We have to do this now, rather than
            // in initialize, because the communicator may need to interpret
            // proxies before the plug-in is fully initialized.
            //
            EndpointFactoryI factory  = new EndpointFactoryI(new Instance(_engine, IceSSL.EndpointType.value, "ssl"));
            facade.addEndpointFactory(factory);
        }
示例#5
0
文件: PluginI.cs 项目: sk163/ice-1
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // Register the endpoint factory. We have to do this now, rather than
            // in initialize, because the communicator may need to interpret
            // proxies before the plug-in is fully initialized.
            //
            EndpointFactoryI factory = new EndpointFactoryI(new Instance(_engine, IceSSL.EndpointType.value, "ssl"));

            facade.addEndpointFactory(factory);
        }
示例#6
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            IceInternal.EndpointFactory tcp = facade.getEndpointFactory(Ice.TCPEndpointType.value);
            if(tcp != null)
            {
                Instance instance = new Instance(_engine, Ice.SSLEndpointType.value, "ssl");
                facade.addEndpointFactory(new EndpointFactoryI(instance, tcp.clone(instance, null)));
            }
        }
示例#7
0
 internal Instance(SSLEngine engine, short type, string protocol) :
     base(engine.communicator(), type, protocol, true)
 {
     _engine = engine;
 }
示例#8
0
文件: Instance.cs 项目: sgrzegorz/ice
 internal Instance(SSLEngine engine, Ice.EndpointType type, string transport)
     : base(engine.Communicator(), type, transport, true) => _engine = engine;
示例#9
0
 internal Instance(SSLEngine engine, short type, string protocol)
     : base(engine.communicator(), type, protocol, true)
 {
     _engine = engine;
 }