OSocketStream

from acron.core import OSocketStream
class OSocketStream

Bases:

Bases: ostream, SSWriter

A base class for ostreams that write to a (possibly non-blocking) socket. It adds is_closed(), which can be called after any write operation fails to check whether the socket has been closed, or whether more data may be sent later.

Inheritance diagram

digraph inheritance28d140a6c9 { 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=""]; "OSocketStream" [URL="acron.core.OSocketStream.html#acron.core.OSocketStream",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ostream" -> "OSocketStream" [arrowsize=0.75,style=""]; "SSWriter" -> "OSocketStream" [arrowsize=0.75,style=""]; "SSWriter" [URL="acron.core.SSWriter.html#acron.core.SSWriter",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" -> "SSWriter" [arrowsize=0.75,style=""]; "basic_ios_char" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ios_base" -> "basic_ios_char" [arrowsize=0.75,style=""]; "ios_base" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",tooltip="// We need to expose one method in each class to force it to publish."]; "DTOOL_SUPER_BASE" -> "ios_base" [arrowsize=0.75,style=""]; "ostream" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "basic_ios_char" -> "ostream" [arrowsize=0.75,style=""]; }
close()
flush()

Sends the most recently queued data now. This only has meaning if set_collect_tcp() has been set to true.

is_closed()