IceObjC::StreamEndpointIPtr IceObjC::StreamEndpointI::endpoint(const StreamAcceptorPtr& a) const { int port = a->effectivePort(); if(port == _port) { return ICE_DYNAMIC_CAST(StreamEndpointI, ICE_SHARED_FROM_CONST_THIS(StreamEndpointI)); } else { return ICE_MAKE_SHARED(StreamEndpointI, _instance, _host, port, _sourceAddr, _timeout, _connectionId, _compress); } }
StreamEndpointIPtr IceInternal::StreamEndpointI::endpoint(const StreamAcceptorPtr& acceptor) const { return new StreamEndpointI(_instance, _host, acceptor->effectivePort(), _timeout, _connectionId, _compress); }