# Socket_UDP_Incoming

from pandac.PandaModules import Socket_UDP_Incoming

Class : Socket_UDP_Incoming
Description : Base functionality for a UDP Reader

## Inheritance:

Socket_UDP_Incoming: Socket_IP
Socket_IP: TypedObject
TypedObject: MemoryBase
MemoryBase:

## Methods of Socket_UDP_Incoming:

SocketUDPIncoming (Constructor)
getClassType
GetPacket
InitNoAddress
OpenForInput
OpenForInputMCast
SendTo
SetToBroadCast

## Methods of Socket_IP:

SocketIP (Constructor)
Active
Close
getClassType
GetLastError
GetPeerName
GetSocket
InitNetworkDriver
SetBlocking
SetNonBlocking
SetRecvBufferSize
SetReuseAddress
SetSocket

## Methods of TypedObject:

getClassType
getType
getTypeIndex
isExactType
isOfType

SocketUDPIncoming Socket_UDP_Incoming::Socket_UDP_Incoming(void); Undocumented function.

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

GetPacket bool Socket_UDP_Incoming::GetPacket(char *data, int *max_len, Socket_Address &address); Function name : Socket_UDP_Incoming::GetPacket Description : Grabs a dataset off the listening UDP socket and fills in the source address information Return type : bool Argument : char * data Argument : int *max_len Argument : NetAddress & address

InitNoAddress bool Socket_UDP_Incoming::InitNoAddress(void); Function name : Socket_UDP_Incoming::InitNoAddress Description : Set this socket to work with out a bound external address.. Return type : inline bool Argument : void

OpenForInput bool Socket_UDP_Incoming::OpenForInput(Socket_Address const &address); Function name : Socket_UDP_Incoming::OpenForInput Description : Starts a UDP socket listening on a port Return type : bool Argument : NetAddress & address

OpenForInputMCast bool Socket_UDP_Incoming::OpenForInputMCast(Socket_Address const &address); Function name : Socket_UDP_Incoming::OpenForInput Description : Starts a UDP socket listening on a port Return type : bool Argument : NetAddress & address

SendTo bool Socket_UDP_Incoming::SendTo(char const *data, int len, Socket_Address const &address); Function name : SocketUDP_Outgoing::SendTo Description : Send data to specified address Return type : inline bool Argument : char * data Argument : int len Argument : NetAddress & address

SetToBroadCast bool Socket_UDP_Incoming::SetToBroadCast(void); Function name : Socket_UDP_Incoming::tToBroadCast Description : Flips the OS bits that allow for brodcast packets to com in on this port Return type : bool Argument : void

SocketIP Socket_IP::Socket_IP(void); Function name : Socket_IP::Socket_IP Description : Def Constructor Function name : Socket_IP::SetSocket Description : Assigns an existing socket to this class

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.