コード例 #1
0
ファイル: StreamEndpointI.cpp プロジェクト: ming-hai/ice
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);
    }
}
コード例 #2
0
ファイル: StreamEndpointI.cpp プロジェクト: chenbk85/ice
StreamEndpointIPtr
IceInternal::StreamEndpointI::endpoint(const StreamAcceptorPtr& acceptor) const
{
    return new StreamEndpointI(_instance, _host, acceptor->effectivePort(), _timeout, _connectionId, _compress);
}