SocketStreamRecorder

from acron.core import SocketStreamRecorder
class SocketStreamRecorder

Bases:

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

digraph inheritance83697602a2 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "RecorderBase" [URL="acron.core.RecorderBase.html#acron.core.RecorderBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "RecorderBase" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "SocketStreamRecorder" [URL="acron.core.SocketStreamRecorder.html#acron.core.SocketStreamRecorder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RecorderBase" -> "SocketStreamRecorder" [arrowsize=0.75,style=""]; "ReferenceCount" -> "SocketStreamRecorder" [arrowsize=0.75,style=""]; }
__init__()
close()

See SocketStream.close().

consider_flush()

See SocketStream.consider_flush()

flush()

See SocketStream.flush()

static get_class_type()
get_collect_tcp()

See SocketStream.get_collect_tcp().

get_collect_tcp_interval()

See SocketStream.get_collect_tcp_interval().

is_closed()

See SocketStream.is_closed().

receive_datagram()

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.

send_datagram()

See SocketStream.send_datagram().

set_collect_tcp()

See SocketStream.set_collect_tcp().

set_collect_tcp_interval()

See SocketStream.set_collect_tcp_interval().