/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay                     *
*                                                                          *
* Distributed under the terms of the BSD 3-Clause License.                 *
*                                                                          *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/

#include "xipc_client.hpp"

namespace xeus
{

    xipc_client::xipc_client(xcontext& context, const xkernel_configuration& config)
        : p_client(make_xclient_zmq(context, config))
    {
    }

    void xipc_client::send_on_shell(xmessage msg)
    {
        p_client->send_on_shell(std::move(msg));
    }

    std::optional<xmessage> xipc_client::receive_on_shell(bool blocking)
    {
        return p_client->receive_on_shell(blocking);
    }
}
