request.cpp 395 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5 6 7 8 9
#include <thallium/engine.hpp>
#include <thallium/request.hpp>
#include <thallium/endpoint.hpp>

namespace thallium {

endpoint request::get_endpoint() const {
    const struct hg_info* info = margo_get_info(m_handle);
    hg_addr_t addr;
10 11
    hg_return_t ret = margo_addr_dup(m_engine->m_mid, info->addr, &addr);
    MARGO_ASSERT(ret, margo_addr_dup);
Matthieu Dorier's avatar
Matthieu Dorier committed
12 13 14 15
    return endpoint(*m_engine, addr);
}

}