30 #ifdef WITH_BUNDLE_SECURITY
39 :
ProtocolHandler(client, stream), _sender(*this), _streambuf(*this), _bundlestream(&_streambuf), _group(true), _lifetime(3600)
95 if ((!_group) && (bundle.
source != _peer))
129 }
catch (
const std::exception&) { };
141 std::string::reverse_iterator iter = buffer.rbegin();
142 if ( (*iter) ==
'\r' ) buffer = buffer.substr(0, buffer.length() - 1);
145 if (cmd.empty())
continue;
148 if (cmd[0] ==
"connect")
156 _bundlestream <<
_stream.rdbuf() << std::flush;
158 else if (cmd[0] ==
"set")
162 if (cmd[1] ==
"endpoint")
167 if (cmd[2].length() <= 0)
185 else if (cmd[1] ==
"destination")
191 else if (cmd[1] ==
"group")
197 else if (cmd[1] ==
"lifetime")
199 std::stringstream ss(cmd[2]);
203 else if (cmd[1] ==
"chunksize")
206 std::stringstream ss(cmd[2]);
211 else if (cmd[1] ==
"timeout")
214 std::stringstream ss(cmd[2]);
228 }
catch (
const std::exception&) {
239 OrderedStreamHandler::Sender::~Sender()
244 void OrderedStreamHandler::Sender::__cancellation() throw ()
247 _handler._client.getRegistration().abort();
250 void OrderedStreamHandler::Sender::finally() throw ()
252 _handler._client.getRegistration().abort();
255 void OrderedStreamHandler::Sender::run() throw ()
258 _handler._stream << _handler._bundlestream.rdbuf() << std::flush;
259 }
catch (
const std::exception &ex) {