17 INLINE SocketStreamRecorder::
18 SocketStreamRecorder() :
28 INLINE SocketStreamRecorder::
29 SocketStreamRecorder(SocketStream *stream,
bool owns_stream) :
31 _owns_stream(owns_stream),
39 INLINE SocketStreamRecorder::
40 ~SocketStreamRecorder() {
49 bool SocketStreamRecorder::
51 if (_stream !=
nullptr) {
52 return _stream->send_datagram(dg);
60 INLINE
bool SocketStreamRecorder::
62 if (_stream !=
nullptr) {
63 return _stream->is_closed();
65 return is_playing() && _closed;
71 INLINE
void SocketStreamRecorder::
73 if (_stream !=
nullptr) {
82 INLINE
void SocketStreamRecorder::
83 set_collect_tcp(
bool collect_tcp) {
84 if (_stream !=
nullptr) {
85 _stream->set_collect_tcp(collect_tcp);
92 INLINE
bool SocketStreamRecorder::
93 get_collect_tcp()
const {
94 if (_stream !=
nullptr) {
95 return _stream->get_collect_tcp();
103 INLINE
void SocketStreamRecorder::
104 set_collect_tcp_interval(
double interval) {
105 if (_stream !=
nullptr) {
106 _stream->set_collect_tcp_interval(interval);
113 INLINE
double SocketStreamRecorder::
114 get_collect_tcp_interval()
const {
115 if (_stream !=
nullptr) {
116 return _stream->get_collect_tcp_interval();
124 INLINE
bool SocketStreamRecorder::
126 if (_stream !=
nullptr) {
127 return _stream->consider_flush();
135 INLINE
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 ...