SocketStreamRecorder

from panda3d.core import SocketStreamRecorder
class SocketStreamRecorder

Bases: RecorderBase, ReferenceCount

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.

Inheritance diagram

Inheritance diagram of SocketStreamRecorder

__init__(*args, **kwargs)
close()

C++ Interface: close(const SocketStreamRecorder self)

/**
  • See SocketStream::close().

*/

considerFlush()

C++ Interface: consider_flush(const SocketStreamRecorder self)

/**
  • See SocketStream::consider_flush()

*/

consider_flush()

C++ Interface: consider_flush(const SocketStreamRecorder self)

/**
  • See SocketStream::consider_flush()

*/

flush()

C++ Interface: flush(const SocketStreamRecorder self)

/**
  • See SocketStream::flush()

*/

getClassType()

C++ Interface: get_class_type()

getCollectTcp()

C++ Interface: get_collect_tcp(SocketStreamRecorder self)

/**
  • See SocketStream::get_collect_tcp().

*/

getCollectTcpInterval()

C++ Interface: get_collect_tcp_interval(SocketStreamRecorder self)

/**
  • See SocketStream::get_collect_tcp_interval().

*/

get_class_type()

C++ Interface: get_class_type()

get_collect_tcp()

C++ Interface: get_collect_tcp(SocketStreamRecorder self)

/**
  • See SocketStream::get_collect_tcp().

*/

get_collect_tcp_interval()

C++ Interface: get_collect_tcp_interval(SocketStreamRecorder self)

/**
  • See SocketStream::get_collect_tcp_interval().

*/

isClosed()

C++ Interface: is_closed(const SocketStreamRecorder self)

/**
  • See SocketStream::is_closed().

*/

is_closed()

C++ Interface: is_closed(const SocketStreamRecorder self)

/**
  • See SocketStream::is_closed().

*/

receiveDatagram()

C++ Interface: receive_datagram(const SocketStreamRecorder self, 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.

*/

receive_datagram()

C++ Interface: receive_datagram(const SocketStreamRecorder self, 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.

*/

sendDatagram()

C++ Interface: send_datagram(const SocketStreamRecorder self, const Datagram dg)

/**
  • See SocketStream::send_datagram().

*/

send_datagram()

C++ Interface: send_datagram(const SocketStreamRecorder self, const Datagram dg)

/**
  • See SocketStream::send_datagram().

*/

setCollectTcp()

C++ Interface: set_collect_tcp(const SocketStreamRecorder self, bool collect_tcp)

/**
  • See SocketStream::set_collect_tcp().

*/

setCollectTcpInterval()

C++ Interface: set_collect_tcp_interval(const SocketStreamRecorder self, double interval)

/**
  • See SocketStream::set_collect_tcp_interval().

*/

set_collect_tcp()

C++ Interface: set_collect_tcp(const SocketStreamRecorder self, bool collect_tcp)

/**
  • See SocketStream::set_collect_tcp().

*/

set_collect_tcp_interval()

C++ Interface: set_collect_tcp_interval(const SocketStreamRecorder self, double interval)

/**
  • See SocketStream::set_collect_tcp_interval().

*/

upcastToRecorderBase()

C++ Interface: upcast_to_RecorderBase(const SocketStreamRecorder self)

upcast from SocketStreamRecorder to RecorderBase

upcastToReferenceCount()

C++ Interface: upcast_to_ReferenceCount(const SocketStreamRecorder self)

upcast from SocketStreamRecorder to ReferenceCount

upcast_to_RecorderBase()

C++ Interface: upcast_to_RecorderBase(const SocketStreamRecorder self)

upcast from SocketStreamRecorder to RecorderBase

upcast_to_ReferenceCount()

C++ Interface: upcast_to_ReferenceCount(const SocketStreamRecorder self)

upcast from SocketStreamRecorder to ReferenceCount