# Socket_TCP_Listen

from pandac.PandaModules import Socket_TCP_Listen

## Inheritance:

Socket_TCP_Listen: Socket_IP
Socket_IP: TypedObject
TypedObject: MemoryBase
MemoryBase:

## Methods of Socket_TCP_Listen:

getClassType
GetIncomingConnection
OpenForListen

## Methods of Socket_IP:

Active
Close
getClassType
GetLastError
GetPeerName
GetSocket
InitNetworkDriver
SetBlocking
SetNonBlocking
SetRecvBufferSize
SetReuseAddress
SetSocket

## Methods of TypedObject:

getClassType
getType
getTypeIndex
isExactType
isOfType

getClassType static TypeHandle Socket_TCP_Listen::get_class_type(void); Undocumented function.

GetIncomingConnection bool Socket_TCP_Listen::GetIncomingConnection(Socket_TCP &newsession, Socket_Address &address); Function name : GetIncomingConnection Description : This function is used to accept new connections

OpenForListen bool Socket_TCP_Listen::OpenForListen(Socket_Address const &Inaddess, int backlog_size = (1024)); Function name : OpenForListen Description : This function will initialize a listening Socket

Active bool Socket_IP::Active(void); Function name : Socket_IP::Active Description : Ask if the socket is open (allocated)

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

getClassType static TypeHandle Socket_IP::get_class_type(void); Undocumented function.

GetLastError static int Socket_IP::GetLastError(void); Function name : Socket_IP::GetLastError Description : gets the last errcode from a socket operation

GetPeerName Socket_Address Socket_IP::GetPeerName(void) const; Function name : Socket_IP::GetPeerName Description : Wrapper on berkly getpeername...

GetSocket int Socket_IP::GetSocket(void); Function name : Socket_IP::GetSocket Description : Gets the base socket type Description : Get The RAW file id of the socket

InitNetworkDriver static int Socket_IP::InitNetworkDriver(void); Undocumented function.

SetBlocking int Socket_IP::SetBlocking(void); Function name : Socket_IP::SetBlocking Description : Set the socket to block on subsequent calls to socket functions that address this socket

SetNonBlocking int Socket_IP::SetNonBlocking(void); Function name : SetNonBlocking Description : this function will throw a socket into non-blocking mode

SetRecvBufferSize int Socket_IP::SetRecvBufferSize(int size); Function name : Socket_IP::SetRecvBufferSize Description : Ok it sets the recv buffer size for both tcp and UDP

SetReuseAddress bool Socket_IP::SetReuseAddress(bool flag = (1)); Function name : SetReuseAddress Description : Informs a socket to reuse IP address as needed

SetSocket void Socket_IP::SetSocket(int ins); Function name : Socket_IP::SetSocket Description : Assigns an existing socket to this class

getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function.

getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type().

getTypeIndex int TypedObject::get_type_index(void) const; Description: 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().

isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly.

isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type.