-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZmqTools_8hpp.html
151 lines (107 loc) · 14.6 KB
/
ZmqTools_8hpp.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<html>
<head>
<meta name="keywords" content="0MQ, ZeroMQ, C++, multipart, message, library, open source, ZmqMessage" />
<meta name="description" content="ZmqMessage is free open source C++ library for sending and receiving ZeroMQ multipart messages"/>
<meta name="google-site-verification" content="0EvtpfjffSrc0fDV9ubKQVfq3IV55KY5d59hXHg9M34" />
<title>ZmqMessage: include/ZmqTools.hpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<style>
/* must override a few items to get the style background color */
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25607292-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<table class="zm_headbar">
<tr>
<td>
<span><a href="index.html">Overview</a></span>
<span><a href="zm_tutorial.html">Tutorial</a></span>
<span><a href="namespaceZmqMessage.html">API reference</a></span>
<span><a href="examples.html">Examples</a></span>
<span><a href="zm_build.html">Build</a></span>
<span><a href="https://github.com/zmqmessage/zmqmessage/">Download</a></span>
</td>
<td align="right" class="zm_greynote">ZmqMessage 0.1 - 21 Oct 2011</td>
</tr></table>
<hr style="height: 3px;">
<!-- Generated by Doxygen 1.4.7 -->
<h1>include/ZmqTools.hpp File Reference</h1><code>#include <cstdlib></code><br>
<code>#include <ctime></code><br>
<code>#include <string></code><br>
<code>#include <sstream></code><br>
<code>#include "<a class="el" href="Config_8hpp-source.html">zmqmessage/Config.hpp</a>"</code><br>
<code>#include "<a class="el" href="MetaTypes_8hpp-source.html">zmqmessage/MetaTypes.hpp</a>"</code><br>
<code>#include "<a class="el" href="RawMessage_8hpp-source.html">zmqmessage/RawMessage.hpp</a>"</code><br>
<p>
<a href="ZmqTools_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html">ZmqMessage</a></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#978c2af74b171d46e92b7403227cf3be">ZmqMessage::get_bin</a> (zmq::message_t &message, T &t)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#105c49940c701cd582cf49af585ce138">ZmqMessage::get_bin</a> (zmq::message_t &message)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#06c86c0cd57a00985048ef9b94b60729">ZmqMessage::get</a> (zmq::message_t &message, typename Private::EnableIf< Private::IsStr< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#74698af47b4f20373daf2634efd2c5ce">ZmqMessage::get</a> (zmq::message_t &message, typename Private::DisableIf< Private::IsStr< T >::value >::type *=0, typename Private::DisableIf< Private::IsRaw< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#29df1042224246167f42c6e3bd5e8c7e">ZmqMessage::get</a> (zmq::message_t &message, typename Private::DisableIf< Private::IsStr< T >::value >::type *=0, typename Private::EnableIf< Private::IsRaw< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#99db1e6d19fb3aba25f950751bc6ce45">ZmqMessage::get</a> (zmq::message_t &message, T &t, typename Private::EnableIf< Private::IsStr< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#278b265ff41cd1736ff7c832e414dd7f">ZmqMessage::get</a> (zmq::message_t &message, T &t, typename Private::DisableIf< Private::IsStr< T >::value >::type *=0, typename Private::DisableIf< Private::IsRaw< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#263488deab344763d7ede4ba2ce6ce2a">ZmqMessage::get</a> (zmq::message_t &message, T &t, typename Private::DisableIf< Private::IsStr< T >::value >::type *=0, typename Private::EnableIf< Private::IsRaw< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#3364f9caaedb2bd57a6341974325842f">ZmqMessage::get</a> (zmq::message_t &message, bool binary_mode)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#a691b57f5029d646ab39e4112d7e72e3">ZmqMessage::get</a> (zmq::message_t &message, T &t, bool binary_mode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">RawMessage </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#de8421ea099ffecb597b8ccf018e152b">ZmqMessage::get_raw</a> (zmq::message_t &message)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#81ef09fe85119d2a4853f2c7ec17481e">ZmqMessage::get_string</a> (zmq::message_t &message)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#4a8c7970499f79cd5ee7d47ddcac7294">ZmqMessage::get_string</a> (zmq::message_t &message, size_t limit)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#5424357e3c2f0e243cb6acf4390b0b9f">ZmqMessage::get_time</a> (zmq::message_t &message)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#7104013a51fbed6a0af2ea7004ad6834">ZmqMessage::msgcmp</a> (zmq::message_t &message, const char *str, size_t len)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#4220f3353f50c65172b3ce86af3a6f26">ZmqMessage::msgcmp</a> (zmq::message_t &message, const char *str)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#6ba3ddc1a89c0c6ab6095270f816d77e">ZmqMessage::msgcmp</a> (zmq::message_t &message, const T &str, typename Private::EnableIf< Private::IsStr< T >::value >::type *=0)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#8d9fb5d43437f57a05635350f1abe1d1">ZmqMessage::init_msg</a> (const void *t, size_t sz, zmq::message_t &msg)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#19efe9d29bb0e2d6b3dbf75347edc1b7">ZmqMessage::init_msg</a> (const T &t, zmq::message_t &msg, typename Private::EnableIf< Private::IsStr< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#e70fbb55d69bd89acb08f7081753c1c6">ZmqMessage::init_msg</a> (const T &t, zmq::message_t &msg, typename Private::DisableIf< Private::IsStr< T >::value >::type *=0, typename Private::DisableIf< Private::IsRaw< T >::value >::type *=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#0dcd1bbdc8adf96d16ac8d732fa009c0">ZmqMessage::init_msg</a> (const T &t, zmq::message_t &msg, typename Private::DisableIf< Private::IsStr< T >::value >::type *=0, typename Private::EnableIf< Private::IsRaw< T >::value >::type *=0)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#f652f891109295b2572fba079fae5605">ZmqMessage::init_msg</a> (const char *t, zmq::message_t &msg)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#b4fb52a9a5e1070ec322313ffeaa33b8">ZmqMessage::init_msg_bin</a> (const T &t, zmq::message_t &msg)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#7de4cc6a5b3dd74af1454d7724cddd12">ZmqMessage::init_msg</a> (const T &t, zmq::message_t &msg, bool binary_mode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#a2a1cf47a8dff94135d544cff9b07b90">ZmqMessage::throw_zmq_exception</a> (const zmq::error_t &e) throw (ZmqErrorType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#939d571192cd3787f2c4c390aeb8ef99">ZmqMessage::recv_msg</a> (zmq::socket_t &sock, zmq::message_t &msg, int flags=0) throw (ZmqErrorType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#95d7bc81fee705d7dbd69bec90b9bdf5">ZmqMessage::try_recv_msg</a> (zmq::socket_t &sock, zmq::message_t &msg, int flags=ZMQ_NOBLOCK) throw (ZmqErrorType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#fca5cb180adf2275ae55c947595133cb">ZmqMessage::send_msg</a> (zmq::socket_t &sock, zmq::message_t &msg, int flags) throw (ZmqErrorType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#1d9ba4e9317304ff7d769092dd60fd26">ZmqMessage::copy_msg</a> (zmq::message_t &target, zmq::message_t &source) throw (ZmqErrorType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#5a279539ebc2d608ad3dca51c9d041d1">ZmqMessage::has_more</a> (zmq::socket_t &sock)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceZmqMessage.html#9b00f09bfd307effbb7f1b8af895ad13">ZmqMessage::relay_raw</a> (zmq::socket_t &src, zmq::socket_t &dst, bool check_first_part)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Copyright (c) 2010-2011 Phorm, Inc. GNU LGPL v 3.0, see <a href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html">http://www.gnu.org/licenses/lgpl-3.0-standalone.html</a> <dl compact><dt><b>Author:</b></dt><dd>Andrey Skryabin <<a href="mailto:[email protected]">[email protected]</a>>, et al. </dd></dl>
<hr style="height: 3px;">
<div class="zm_greynote">
ZmqMessage 0.1 — open source software, <a href="mailto:[email protected]">[email protected]</a>
</div>
</body>
</html>