Socket_TCP

from panda3d.core 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

Inheritance diagram of Socket_TCP

ActiveOpen(theaddress: Socket_Address, setdelay: bool) bool

This function will try and set the socket up for active open to a specified address and port provided by the input parameter

ActiveOpenNonBlocking(theaddress: Socket_Address) bool

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

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(err: int) bool
RecvData(max_len: int) str

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(data: bytes) int
SetLinger(interval_seconds: int) int

will control the behavior of SO_LINGER for a TCP socket

SetNoDelay(flag: bool) int

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

SetSendBufferSize(insize: int) int

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

ShutdownSend() bool
__init__()
__init__(param0: int)
static get_class_type() TypeHandle