30 using namespace dtn::data;
37 : std::iostream(&_buf), _callback(cb), _buf(*this, stream, buffer_size), _shutdown_reason(CONNECTION_SHUTDOWN_NOTSET)
51 header.
_keepalive =
static_cast<uint16_t
>(timeout);
57 _peer = _buf.handshake(header);
89 _shutdown_reason = csc;
140 void StreamConnection::eventBundleRefused()
146 void StreamConnection::eventBundleForwarded()
152 void StreamConnection::connectionTimeout()
160 _buf.enableIdleTimeout(seconds);
170 _buf._monitor_stats[0] = 0;
171 _buf._monitor_stats[1] = 0;
176 return _buf._monitor_stats[index];