Socket_TCP

from acron.net import Socket_TCP
class Socket_TCP

Bases:

Bases: Socket_IP

Base 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=""]; }
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

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)

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.

ErrorIs_WouldBlocking()
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)

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)

SetLinger()

will control the behavior of SO_LINGER for a TCP socket

SetNoDelay()

Disable Nagle algorithm. Don’t delay send to coalesce packets

SetSendBufferSize()

Just like it sounds. Sets a buffered socket recv buffer size. This function does not refuse ranges outside hard-coded OS limits

ShutdownSend()
__init__()
static get_class_type()