SocketStreamRecorder¶
-
class SocketStreamRecorder¶
Bases:
RecorderBase,ReferenceCountRecords 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=""]; }- SocketStreamRecorder.__init__()¶
- SocketStreamRecorder.close()¶
See
SocketStream::close().
- SocketStreamRecorder.consider_flush()¶
See
SocketStream::consider_flush()
- SocketStreamRecorder.flush()¶
See
SocketStream::flush()
- static SocketStreamRecorder.get_class_type()¶
- SocketStreamRecorder.get_collect_tcp()¶
See
SocketStream::get_collect_tcp().
- SocketStreamRecorder.get_collect_tcp_interval()¶
See
SocketStream::get_collect_tcp_interval().
- SocketStreamRecorder.is_closed()¶
See
SocketStream::is_closed().
- SocketStreamRecorder.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.
- SocketStreamRecorder.send_datagram()¶
See
SocketStream::send_datagram().
- SocketStreamRecorder.set_collect_tcp()¶
See
SocketStream::set_collect_tcp().
- SocketStreamRecorder.set_collect_tcp_interval()¶
See
SocketStream::set_collect_tcp_interval().