Panda3D
Public Member Functions | Static Public Member Functions | List of all members
SocketIP Class Reference

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

Inheritance diagram for SocketIP:
TypedObject MemoryBase SocketTCP SocketTCPListen SocketUDPIncoming SocketUDPOutgoing BufferedDatagramConnection SocketUDP

Public Member Functions

 __init__ ()
 Function name : Socket_IP::Socket_IP Def Constructor. More...
 
 __init__ (SOCKET in)
 Function name : Socket_IP::SetSocket Assigns an existing socket to this class. More...
 
bool Active ()
 Function name : Socket_IP::Active Ask if the socket is open (allocated) More...
 
 Close ()
 Function name : Socket_IP::Close closes a socket if it is open (allocated) More...
 
SocketAddress GetPeerName ()
 Function name : Socket_IP::GetPeerName Wrapper on berkly getpeername... More...
 
SOCKET GetSocket ()
 Function name : Socket_IP::GetSocket Gets the base socket type. More...
 
SOCKET GetSocket ()
 Function name : Socket_IP::GetSocket Get The RAW file id of the socket. More...
 
int SetBlocking ()
 Function name : Socket_IP::SetBlocking Set the socket to block on subsequent calls to socket functions that address this socket. More...
 
int SetNonBlocking ()
 Function name : SetNonBlocking this function will throw a socket into non-blocking mode. More...
 
int SetRecvBufferSize (int size)
 Function name : Socket_IP::SetRecvBufferSize Ok it sets the recv buffer size for both tcp and UDP. More...
 
bool SetReuseAddress (bool flag)
 Function name : SetReuseAddress Informs a socket to reuse IP address as needed. More...
 
 SetSocket (SOCKET ins)
 Function name : Socket_IP::SetSocket Assigns an existing socket to this class. More...
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 Derived classes should override this function to return get_class_type(). More...
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
static int GetLastError ()
 Function name : Socket_IP::GetLastError gets the last errcode from a socket operation. More...
 
static int InitNetworkDriver ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Detailed Description

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

socket_fdset

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

Function name : Socket_IP::Socket_IP Def Constructor.

◆ __init__() [2/2]

__init__ ( SOCKET  in)

Function name : Socket_IP::SetSocket Assigns an existing socket to this class.

◆ Active()

bool Active ( )

Function name : Socket_IP::Active Ask if the socket is open (allocated)

◆ Close()

Close ( )

Function name : Socket_IP::Close closes a socket if it is open (allocated)

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ GetLastError()

static int GetLastError ( )
static

Function name : Socket_IP::GetLastError gets the last errcode from a socket operation.

◆ GetPeerName()

SocketAddress GetPeerName ( )

Function name : Socket_IP::GetPeerName Wrapper on berkly getpeername...

◆ GetSocket() [1/2]

SOCKET GetSocket ( )

Function name : Socket_IP::GetSocket Gets the base socket type.

◆ GetSocket() [2/2]

SOCKET GetSocket ( )

Function name : Socket_IP::GetSocket Get The RAW file id of the socket.

◆ InitNetworkDriver()

static int InitNetworkDriver ( )
static

◆ SetBlocking()

int SetBlocking ( )

Function name : Socket_IP::SetBlocking Set the socket to block on subsequent calls to socket functions that address this socket.

◆ SetNonBlocking()

int SetNonBlocking ( )

Function name : SetNonBlocking this function will throw a socket into non-blocking mode.

◆ SetRecvBufferSize()

int SetRecvBufferSize ( int  size)

Function name : Socket_IP::SetRecvBufferSize Ok it sets the recv buffer size for both tcp and UDP.

◆ SetReuseAddress()

bool SetReuseAddress ( bool  flag)

Function name : SetReuseAddress Informs a socket to reuse IP address as needed.

◆ SetSocket()

SetSocket ( SOCKET  ins)

Function name : Socket_IP::SetSocket Assigns an existing socket to this class.