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

Base functionality for a UDP Reader. More...

Inheritance diagram for SocketUDPIncoming:
SocketIP TypedObject MemoryBase SocketUDP

Public Member Functions

 __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 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 UDP Reader.

Member Function Documentation

◆ __init__()

__init__ ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ InitNoAddress()

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.

◆ OpenForInput()

bool OpenForInput ( const SocketAddress  address)

Function name : Socket_UDP_Incoming::OpenForInput Starts a UDP socket listening on a port.

Return type : bool Argument : NetAddress & address

◆ OpenForInputMCast()

bool OpenForInputMCast ( const SocketAddress  address)

Function name : Socket_UDP_Incoming::OpenForInput Starts a UDP socket listening on a port.

Return type : bool Argument : NetAddress & address

◆ SendTo()

bool SendTo ( str  data,
int  len,
const SocketAddress  address 
)

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

Return type : inline bool Argument : char * data Argument : int len Argument : NetAddress & address

◆ SetToBroadCast()

bool SetToBroadCast ( )

Function name : Socket_UDP_Incoming::tToBroadCast Flips the OS bits that allow for brodcast packets to com in on this port.

Return type : bool Argument : void