getACMTimeout() equivalent for ICE server (no Glacier2)

sulliwanesulliwane Member MaxOrganization: persoProject: chat middleware

Hello,

when connecting through Glacier2, I can query its ACTTimeout (using getACMTimeout() on the router object).

router.getACMTimeout()

What is the equivalent for a direct connection to an ICE server?

Many thanks for you answer.

Tagged:

Answers

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff

    Hi,

    Just like Glacier2, you need to provide a slice operation to retrieve the ACM timeout configured for the connection:

    int
    SessionRouterI::getACMTimeout(const Ice::Current& current) const
    {
        return current.con->getACM().timeout;
    }
    

    Cheers,
    Benoit.

Sign In or Register to comment.