Socket_TCP¶
-
class Socket_TCP¶
Bases:
Socket_IPBase functionality for a TCP connected socket This class is pretty useless by itself but it does hide some of the platform differences from machine to machine
Inheritance diagram
digraph inheritancea95e558f2f { 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=""]; "Socket_IP" [URL="acron.net.Socket_IP.html#acron.net.Socket_IP",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "Socket_IP" [arrowsize=0.75,style=""]; "Socket_TCP" [URL="acron.net.Socket_TCP.html#acron.net.Socket_TCP",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "Socket_IP" -> "Socket_TCP" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",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" -> "TypedObject" [arrowsize=0.75,style=""]; }- Socket_TCP.ActiveOpen()¶
inline bool ActiveOpen(const
Socket_Address&theaddress);This function will try and set the socket up for active open to a specified address and port provided by the input parameter
- Socket_TCP.ActiveOpenNonBlocking()¶
This function will try and set the socket up for active open to a specified address and port provided by the input parameter (non-blocking version)
- Socket_TCP.DontLinger()¶
Turn off the linger flag. The socket will quickly release buffered items and free up OS resources. You may lose a stream if you use this flag and do not negotiate the close at the application layer.
- Socket_TCP.ErrorIs_WouldBlocking()¶
- Socket_TCP.RecvData()¶
Read the data from the connection - if error 0 if socket closed for read or length is 0 + bytes read ( May be smaller than requested)
Read the data from the connection - if error 0 if socket closed for read or length is 0 + bytes read (May be smaller than requested)
- Socket_TCP.SendData()¶
Ok Lets Send the Data - if error 0 if socket closed for write or lengh is 0 + bytes writen ( May be smaller than requested)
- Socket_TCP.SetLinger()¶
will control the behavior of SO_LINGER for a TCP socket
- Socket_TCP.SetNoDelay()¶
Disable Nagle algorithm. Don’t delay send to coalesce packets
- Socket_TCP.SetSendBufferSize()¶
Just like it sounds. Sets a buffered socket recv buffer size. This function does not refuse ranges outside hard-coded OS limits
- Socket_TCP.ShutdownSend()¶
- Socket_TCP.__init__()¶
- static Socket_TCP.get_class_type()¶