Panda3D
|
Records any data received from the indicated socket stream. More...
#include <pandadoc.hpp>
Public Member Functions | |
__init__ () | |
__init__ (SocketStream stream, bool owns_stream) | |
close () | |
See SocketStream::close(). | |
bool | considerFlush () |
See SocketStream::consider_flush() | |
bool | flush () |
See SocketStream::flush() | |
bool | getCollectTcp () |
See SocketStream::get_collect_tcp(). | |
double | getCollectTcpInterval () |
See SocketStream::get_collect_tcp_interval(). | |
bool | isClosed () |
See SocketStream::is_closed(). | |
bool | receiveDatagram (Datagram dg) |
Receives a datagram over the socket by expecting a little-endian 16-bit byte count as a prefix. | |
bool | sendDatagram (const Datagram dg) |
See SocketStream::send_datagram(). | |
setCollectTcp (bool collect_tcp) | |
See SocketStream::set_collect_tcp(). | |
setCollectTcpInterval (double interval) | |
See SocketStream::set_collect_tcp_interval(). | |
![]() | |
bool | isPlaying () |
Returns true if this recorder is presently playing back data from session file, false otherwise. | |
bool | isRecording () |
Returns true if this recorder is presently recording data for saving to a session file, false otherwise. | |
![]() | |
int | getRefCount () |
Returns the current reference count. | |
ref () | |
Explicitly increments the reference count. | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
bool | unref () |
Explicitly decrements the reference count. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
int | ref_count |
The current reference count. | |
Records any data received from the indicated socket stream.
On playback, it will act as if the incoming data is coming over the wire again even if an actual connection is not available.
Outbound data will not be recorded, but will be sent straight through to the socket if it is connected, or silently ignored if it is not.
__init__ | ( | ) |
__init__ | ( | SocketStream | stream, |
bool | owns_stream ) |
close | ( | ) |
bool considerFlush | ( | ) |
See SocketStream::consider_flush()
bool flush | ( | ) |
|
static |
bool getCollectTcp | ( | ) |
See SocketStream::get_collect_tcp().
double getCollectTcpInterval | ( | ) |
See SocketStream::get_collect_tcp_interval().
bool isClosed | ( | ) |
See SocketStream::is_closed().
bool receiveDatagram | ( | Datagram | dg | ) |
Receives a datagram over the socket by expecting a little-endian 16-bit byte count as a prefix.
If the socket stream is non-blocking, may return false if the data is not available; otherwise, returns false only if the socket closes.
bool sendDatagram | ( | const Datagram | dg | ) |
See SocketStream::send_datagram().
setCollectTcp | ( | bool | collect_tcp | ) |
See SocketStream::set_collect_tcp().
setCollectTcpInterval | ( | double | interval | ) |
See SocketStream::set_collect_tcp_interval().