# Socket_UDP_Outgoing

from pandac.PandaModules import Socket_UDP_Outgoing

Class : Socket_UDP_Outgoing
Description : Base functionality for a UDP Sending Socket

## Inheritance:

Socket_UDP_Outgoing: Socket_IP
Socket_IP: TypedObject
TypedObject: MemoryBase
MemoryBase:

## Methods of Socket_UDP_Outgoing:

SocketUDPOutgoing (Constructor)
getClassType
InitNoAddress
InitToAddress
Send
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

SocketUDPOutgoing Socket_UDP_Outgoing::Socket_UDP_Outgoing(void); Undocumented function.

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

InitNoAddress bool Socket_UDP_Outgoing::InitNoAddress(void); use this interface for a none tagreted UDP connection Function name : Socket_UDP_Outgoing::InitNoAddress Description : This will set a udp up for targeted sends.. Return type : inline bool Argument : void

InitToAddress bool Socket_UDP_Outgoing::InitToAddress(Socket_Address const &address); use this interface for a tagreted UDP connection Function name : Socket_UDP_Outgoing::InitToAddress Description : Connects the Socket to a Specified address Return type : inline bool Argument : NetAddress & address

Send bool Socket_UDP_Outgoing::Send(string const &data); Function name : Socket_UDP_Outgoing::Send Description : Send data to connected address Return type : inline bool Argument : char * data Argument : int len Argument : const string &data

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

SetToBroadCast bool Socket_UDP_Outgoing::SetToBroadCast(void); Function name : Socket_UDP_Outgoing:SetToBroadCast Description : Ask the OS to let us receive BROADCASt packets 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.