panda3d.core.Socket_IP

class Socket_IP

Bases: TypedObject

Base functionality for a INET domain Socket This call should be the starting point for all other unix domain sockets.

SocketIP | ——————————————————————- | | | | SocketTCP SocketTCP_Listen SocketUDP_Incoming SocketUDP_OutBound

Inheritance diagram

Inheritance diagram of Socket_IP

__init__() → None

Def Constructor

__init__(in: SOCKET) → None

Assigns an existing socket to this class

Close() → None

Closes a socket if it is open (allocated).

static GetLastError() → int

Gets the last errcode from a socket operation.

SetNonBlocking() → int

this function will throw a socket into non-blocking mode

SetBlocking() → int

Set the socket to block on subsequent calls to socket functions that address this socket

SetReuseAddress(flag: bool) → bool

Informs a socket to reuse IP address as needed

SetV6Only(flag: bool) → bool

Sets a flag indicating whether this IPv6 socket should operate in dual-stack mode or not.

Active() → bool

Ask if the socket is open (allocated)

SetRecvBufferSize(size: int) → int

Ok it sets the recv buffer size for both tcp and UDP

SetSocket(ins: SOCKET) → None

Assigns an existing socket to this class

GetSocket() → SOCKET

Gets the base socket type

Return type

SOCKET

GetSocket() → SOCKET

Get The RAW file id of the socket

Return type

SOCKET

GetPeerName() → Socket_Address

Wrapper on berkly getpeername…

Return type

Socket_Address

static InitNetworkDriver() → int
static getClassType() → TypeHandle
Return type

TypeHandle