panda3d.core.Socket_TCP

from panda3d.core import Socket_TCP
class Socket_TCP

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.

ErrorIsWouldBlocking(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(str: str) → 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__() → None
__init__(param0: SOCKET) → None
static getClassType() → TypeHandle
Return type

TypeHandle