17INLINE SocketStreamRecorder::
18SocketStreamRecorder() :
28INLINE SocketStreamRecorder::
29SocketStreamRecorder(SocketStream *stream,
bool owns_stream) :
31 _owns_stream(owns_stream),
39INLINE SocketStreamRecorder::
40~SocketStreamRecorder() {
49bool SocketStreamRecorder::
51 if (_stream !=
nullptr) {
52 return _stream->send_datagram(dg);
60INLINE
bool SocketStreamRecorder::
62 if (_stream !=
nullptr) {
63 return _stream->is_closed();
65 return is_playing() && _closed;
71INLINE
void SocketStreamRecorder::
73 if (_stream !=
nullptr) {
82INLINE
void SocketStreamRecorder::
83set_collect_tcp(
bool collect_tcp) {
84 if (_stream !=
nullptr) {
85 _stream->set_collect_tcp(collect_tcp);
92INLINE
bool SocketStreamRecorder::
93get_collect_tcp()
const {
94 if (_stream !=
nullptr) {
95 return _stream->get_collect_tcp();
103INLINE
void SocketStreamRecorder::
104set_collect_tcp_interval(
double interval) {
105 if (_stream !=
nullptr) {
106 _stream->set_collect_tcp_interval(interval);
113INLINE
double SocketStreamRecorder::
114get_collect_tcp_interval()
const {
115 if (_stream !=
nullptr) {
116 return _stream->get_collect_tcp_interval();
124INLINE
bool SocketStreamRecorder::
126 if (_stream !=
nullptr) {
127 return _stream->consider_flush();
135INLINE
bool SocketStreamRecorder::
137 if (_stream !=
nullptr) {
138 return _stream->flush();
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...