Socket_IP

from panda3d.net import 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

Active()

C++ Interface: Active(const Socket_IP self)

/**
  • Ask if the socket is open (allocated)

*/

Close()

C++ Interface: Close(const Socket_IP self)

/**
  • Closes a socket if it is open (allocated).

*/

GetLastError()

C++ Interface: GetLastError()

/**
  • Gets the last errcode from a socket operation.

*/

GetPeerName()

C++ Interface: GetPeerName(Socket_IP self)

/**
  • Wrapper on berkly getpeername…

*/

GetSocket()

C++ Interface: GetSocket(const Socket_IP self) GetSocket(Socket_IP self)

/**
  • Gets the base socket type

*/

/**
  • Get The RAW file id of the socket

*/

InitNetworkDriver()

C++ Interface: InitNetworkDriver()

SetBlocking()

C++ Interface: SetBlocking(const Socket_IP self)

/**
  • Set the socket to block on subsequent calls to socket functions that

  • address this socket

*/

SetNonBlocking()

C++ Interface: SetNonBlocking(const Socket_IP self)

/**
  • this function will throw a socket into non-blocking mode

*/

SetRecvBufferSize()

C++ Interface: SetRecvBufferSize(const Socket_IP self, int size)

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

*/

SetReuseAddress()

C++ Interface: SetReuseAddress(const Socket_IP self, bool flag)

/**
  • Informs a socket to reuse IP address as needed

*/

SetSocket()

C++ Interface: SetSocket(const Socket_IP self, int ins)

/**
  • Assigns an existing socket to this class

*/

SetV6Only()

C++ Interface: SetV6Only(const Socket_IP self, bool flag)

/**
  • Sets a flag indicating whether this IPv6 socket should operate in

  • dual-stack mode or not.

*/

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

get_class_type()

C++ Interface: get_class_type()