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
- 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.
- 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)
- 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
- __init__()
- __init__(param0: int)
- static getClassType() TypeHandle