File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -118,13 +118,21 @@ void socket::close()
118
118
119
119
bool socket::send (std::string const & str, bool dont_block/* = false */ )
120
120
{
121
- return send (str, (dont_block) ? socket::dont_wait : socket::normal );
121
+ message_t msg (str);
122
+ return send (msg, (dont_block) ? socket::dont_wait : socket::normal );
122
123
}
123
124
124
125
bool socket::receive (std::string &str, bool dont_block /* = false */ )
125
126
{
126
- // Unable to use message wrapper as this could be multipart legacy fallback
127
- return receive (str, (dont_block) ? socket::dont_wait : socket::normal );
127
+ message msg;
128
+
129
+ bool ret = receive (msg, (dont_block) ? socket::dont_wait : socket::normal );
130
+ if (ret)
131
+ {
132
+ msg.get (str, 0 );
133
+ }
134
+
135
+ return ret;
128
136
}
129
137
130
138
bool socket::send (zmqpp::signal sig, bool dont_block/* = false */ )
You can’t perform that action at this time.
0 commit comments