30 #ifdef WITH_COMPRESSION
34 #ifdef WITH_BUNDLE_SECURITY
43 :
ProtocolHandler(client, stream), _sender(*this), _streambuf(*this), _bundlestream(&_streambuf), _group(true), _lifetime(3600)
99 if ((!_group) && (bundle.
source != _peer))
133 }
catch (
const std::exception&) { };
145 std::string::reverse_iterator iter = buffer.rbegin();
146 if ( (*iter) ==
'\r' ) buffer = buffer.substr(0, buffer.length() - 1);
149 if (cmd.empty())
continue;
152 if (cmd[0] ==
"connect")
160 _bundlestream <<
_stream.rdbuf() << std::flush;
162 else if (cmd[0] ==
"set")
166 if (cmd[1] ==
"endpoint")
184 else if (cmd[1] ==
"destination")
190 else if (cmd[1] ==
"group")
196 else if (cmd[1] ==
"lifetime")
198 std::stringstream ss(cmd[2]);
202 else if (cmd[1] ==
"chunksize")
205 std::stringstream ss(cmd[2]);
210 else if (cmd[1] ==
"timeout")
213 std::stringstream ss(cmd[2]);
227 }
catch (
const std::exception&) {
238 OrderedStreamHandler::Sender::~Sender()
243 void OrderedStreamHandler::Sender::__cancellation() throw ()
246 _handler._client.getRegistration().abort();
249 void OrderedStreamHandler::Sender::finally() throw ()
251 _handler._client.getRegistration().abort();
254 void OrderedStreamHandler::Sender::run() throw ()
257 _handler._stream << _handler._bundlestream.rdbuf() << std::flush;
258 }
catch (
const std::exception &ex) {