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

Base functionality for a combination UDP Reader and Writer. This duplicates code from Socket_UDP_Outgoing, to avoid the problems of multiple inheritance. More...

Inheritance diagram for SocketUDP:
SocketUDPIncoming SocketIP TypedObject MemoryBase

Public Member Functions

 __init__ ()
 
bool InitNoAddress ()
 Function name : Socket_UDP::InitNoAddress This will set a udp up for targeted sends.. More...
 
bool InitToAddress (const SocketAddress address)
 Function name : Socket_UDP::InitToAddress Connects the Socket to a Specified address. More...
 
bool Send (str data)
 Function name : Socket_UDP::Send Send data to connected address. More...
 
bool SendTo (str data, const SocketAddress address)
 Function name : Socket_UDP::SendTo Send data to specified address. More...
 
bool SetToBroadCast ()
 Function name : Socket_UDP:SetToBroadCast Ask the OS to let us receive BROADCASt packets on this port.. Return type : bool Argument : void. More...
 
- Public Member Functions inherited from SocketUDPIncoming
 __init__ ()
 
bool InitNoAddress ()
 Function name : Socket_UDP_Incoming::InitNoAddress Set this socket to work with out a bound external address.. Return type : inline bool Argument : void. More...
 
bool OpenForInput (const SocketAddress address)
 Function name : Socket_UDP_Incoming::OpenForInput Starts a UDP socket listening on a port. More...
 
bool OpenForInputMCast (const SocketAddress address)
 Function name : Socket_UDP_Incoming::OpenForInput Starts a UDP socket listening on a port. More...
 
bool SendTo (str data, int len, const SocketAddress address)
 Function name : SocketUDP_Outgoing::SendTo Send data to specified address. More...
 
bool SetToBroadCast ()
 Function name : Socket_UDP_Incoming::tToBroadCast Flips the OS bits that allow for brodcast packets to com in on this port. More...
 
- Public Member Functions inherited from SocketIP
 __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 Public Member Functions inherited from SocketUDPIncoming
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from SocketIP
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 combination UDP Reader and Writer. This duplicates code from Socket_UDP_Outgoing, to avoid the problems of multiple inheritance.

Member Function Documentation

◆ __init__()

__init__ ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ InitNoAddress()

bool InitNoAddress ( )

Function name : Socket_UDP::InitNoAddress This will set a udp up for targeted sends..

Return type : inline bool Argument : void

◆ InitToAddress()

bool InitToAddress ( const SocketAddress  address)

Function name : Socket_UDP::InitToAddress Connects the Socket to a Specified address.

Return type : inline bool Argument : NetAddress & address

◆ Send()

bool Send ( str  data)

Function name : Socket_UDP::Send Send data to connected address.

Return type : inline bool Argument : const string &data

◆ SendTo()

bool SendTo ( str  data,
const SocketAddress  address 
)

Function name : Socket_UDP::SendTo Send data to specified address.

Return type : inline bool Argument : const string &data Argument : NetAddress & address

◆ SetToBroadCast()

bool SetToBroadCast ( )

Function name : Socket_UDP:SetToBroadCast Ask the OS to let us receive BROADCASt packets on this port.. Return type : bool Argument : void.