15 #ifndef SOCKETSTREAMRECORDER_H
16 #define SOCKETSTREAMRECORDER_H
18 #include "pandabase.h"
19 #include "socketStream.h"
20 #include "recorderBase.h"
45 class EXPCL_PANDA_RECORDER SocketStreamRecorder :
public RecorderBase,
48 INLINE SocketStreamRecorder();
49 INLINE SocketStreamRecorder(SocketStream *stream,
bool owns_stream);
50 INLINE ~SocketStreamRecorder();
53 INLINE
bool send_datagram(
const Datagram &dg);
55 INLINE
bool is_closed();
58 INLINE
void set_collect_tcp(
bool collect_tcp);
59 INLINE
bool get_collect_tcp()
const;
60 INLINE
void set_collect_tcp_interval(
double interval);
61 INLINE
double get_collect_tcp_interval()
const;
63 INLINE
bool consider_flush();
71 SocketStream *_stream;
79 static void register_with_read_factory();
93 static void init_type() {
94 RecorderBase::init_type();
95 register_type(_type_handle,
"SocketStreamRecorder",
96 RecorderBase::get_class_type());
99 return get_class_type();
101 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
107 #include "socketStreamRecorder.I"
109 #endif // HAVE_OPENSSL
111 #endif // SOCKETSTREAMRECORDER_H
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This describes the structure of a single array within a Geom data.
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
virtual bool unref() const
Explicitly decrements the reference count.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is the base class to a number of objects that record particular kinds of user input (like a Mous...
virtual void write_recorder(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for encoding in the session file.
A base class for all things that want to be reference-counted.
void ref() const
Explicitly increments the reference count.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...