File: xipc_client.cpp

package info (click to toggle)
xeus-zmq 3.1.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: cpp: 4,626; makefile: 157; python: 109
file content (28 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/***************************************************************************
* 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 xconfiguration& 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);
    }
}