21 INLINE SocketStreamRecorder::
22 SocketStreamRecorder() :
34 INLINE SocketStreamRecorder::
35 SocketStreamRecorder(SocketStream *stream,
bool owns_stream) :
37 _owns_stream(owns_stream),
47 INLINE SocketStreamRecorder::
48 ~SocketStreamRecorder() {
59 bool SocketStreamRecorder::
61 if (_stream != (SocketStream *)NULL) {
62 return _stream->send_datagram(dg);
72 INLINE
bool SocketStreamRecorder::
74 if (_stream != (SocketStream *)NULL) {
75 return _stream->is_closed();
77 return is_playing() && _closed;
85 INLINE
void SocketStreamRecorder::
87 if (_stream != (SocketStream *)NULL) {
98 INLINE
void SocketStreamRecorder::
99 set_collect_tcp(
bool collect_tcp) {
100 if (_stream != (SocketStream *)NULL) {
101 _stream->set_collect_tcp(collect_tcp);
110 INLINE
bool SocketStreamRecorder::
111 get_collect_tcp()
const {
112 if (_stream != (SocketStream *)NULL) {
113 return _stream->get_collect_tcp();
123 INLINE
void SocketStreamRecorder::
124 set_collect_tcp_interval(
double interval) {
125 if (_stream != (SocketStream *)NULL) {
126 _stream->set_collect_tcp_interval(interval);
135 INLINE
double SocketStreamRecorder::
136 get_collect_tcp_interval()
const {
137 if (_stream != (SocketStream *)NULL) {
138 return _stream->get_collect_tcp_interval();
148 INLINE
bool SocketStreamRecorder::
150 if (_stream != (SocketStream *)NULL) {
151 return _stream->consider_flush();
161 INLINE
bool SocketStreamRecorder::
163 if (_stream != (SocketStream *)NULL) {
164 return _stream->flush();
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...