summaryrefslogtreecommitdiff
path: root/src/lib/nanomsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/nanomsg.h')
-rw-r--r--src/lib/nanomsg.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/nanomsg.h b/src/lib/nanomsg.h
index 8d89d6d99..bd15a670f 100644
--- a/src/lib/nanomsg.h
+++ b/src/lib/nanomsg.h
@@ -27,27 +27,27 @@
class Nanomsg
{
public:
- explicit Nanomsg (bool server);
- ~Nanomsg ();
+ explicit Nanomsg(bool server);
+ ~Nanomsg();
- Nanomsg (Nanomsg const&) = delete;
- Nanomsg& operator= (Nanomsg const&) = delete;
+ Nanomsg(Nanomsg const&) = delete;
+ Nanomsg& operator=(Nanomsg const&) = delete;
/** Try to send a message, waiting for some timeout before giving up.
* @param timeout Timeout in milliseconds, or -1 for infinite timeout.
* @return true if the send happened, false if there was a timeout.
*/
- bool send (std::string s, int timeout);
+ bool send(std::string s, int timeout);
/** Try to receive a message, waiting for some timeout before giving up.
* @param timeout Timeout in milliseconds, or -1 for infinite timeout.
* @return Empty if the timeout was reached, otherwise the received string.
*/
- boost::optional<std::string> receive (int timeout);
+ boost::optional<std::string> receive(int timeout);
private:
- boost::optional<std::string> get_from_pending ();
- void recv_and_parse (int flags);
+ boost::optional<std::string> get_from_pending();
+ void recv_and_parse(int flags);
int _socket;
int _endpoint;