示例#1
0
文件: EndpointI.cpp 项目: Venom4W/ice
IceInternal::EndpointFactoryPtr
IceSSL::EndpointFactoryI::clone(const IceInternal::ProtocolInstancePtr& inst,
                                const IceInternal::EndpointFactoryPtr& delegate) const
{
    InstancePtr instance = new Instance(_instance->engine(), inst->type(), inst->protocol());
    return new EndpointFactoryI(instance, delegate ? delegate : _delegate->clone(instance, 0));
}
示例#2
0
IceInternal::EndpointFactoryPtr
IceSSL::EndpointFactoryI::clone(const IceInternal::ProtocolInstancePtr& instance) const
{
    return new EndpointFactoryI(new Instance(_instance->engine(), instance->type(), instance->protocol()));
}