14#ifndef SOCKETSTREAMRECORDER_H
15#define SOCKETSTREAMRECORDER_H
40class EXPCL_PANDA_RECORDER SocketStreamRecorder :
public RecorderBase,
43 INLINE SocketStreamRecorder();
44 INLINE
explicit SocketStreamRecorder(SocketStream *stream,
bool owns_stream);
45 INLINE ~SocketStreamRecorder();
48 INLINE
bool send_datagram(
const Datagram &dg);
50 INLINE
bool is_closed();
53 INLINE
void set_collect_tcp(
bool collect_tcp);
54 INLINE
bool get_collect_tcp()
const;
55 INLINE
void set_collect_tcp_interval(
double interval);
56 INLINE
double get_collect_tcp_interval()
const;
58 INLINE
bool consider_flush();
66 SocketStream *_stream;
74 static void register_with_read_factory();
89 static void init_type() {
90 RecorderBase::init_type();
92 RecorderBase::get_class_type());
95 return get_class_type();
97 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
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.
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
A base class for all things that want to be reference-counted.
void ref() const
Explicitly increments the reference count.
get_ref_count
Returns the current reference count.
virtual bool unref() const
Explicitly decrements the reference count.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.