Ejemplo n.º 1
0
ConnectionIPtr
IceInternal::FixedReference::getConnection(bool& compress) const
{
    vector<ConnectionIPtr> filteredConns = filterConnections(_fixedConnections);
    if(filteredConns.empty())
    {
        NoEndpointException ex(__FILE__, __LINE__);
        ex.proxy = ""; // No stringified representation for fixed proxies
        throw ex;
    }

    ConnectionIPtr connection = filteredConns[0];
    assert(connection);
    connection->throwException(); // Throw in case our connection is already destroyed.
    compress = connection->endpoint()->compress();

    return connection;
}
Ejemplo n.º 2
0
 bool
 operator()(ConnectionIPtr p) const
 {
     return p->endpoint()->secure();
 }
Ejemplo n.º 3
0
 bool
 operator()(ConnectionIPtr p) const
 {
     return p->endpoint()->datagram();
 }