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 SocketUDP

Public Member Functions

 __init__ ()
 
bool InitNoAddress ()
 Set this socket to work without a bound external address. More...
 
bool OpenForInput (const SocketAddress address)
 Starts a UDP socket listening on a port. More...
 
bool OpenForInput (unsigned short int port)
 Starts a UDP socket listening on a port. More...
 
bool OpenForInputMCast (const SocketAddress address)
 Starts a UDP socket listening on a port. More...
 
bool SendTo (str data, int len, const SocketAddress address)
 Send data to specified address. More...
 
bool SetToBroadCast ()
 Flips the OS bits that allow for brodcast packets to come in on this port. More...
 
- Public Member Functions inherited from SocketIP
 __init__ ()
 Def Constructor. More...
 
 __init__ (SOCKET in)
 Assigns an existing socket to this class. More...
 
bool Active ()
 Ask if the socket is open (allocated) More...
 
 Close ()
 Closes a socket if it is open (allocated). More...
 
SocketAddress GetPeerName ()
 Wrapper on berkly getpeername... More...
 
SOCKET GetSocket ()
 Gets the base socket type. More...
 
SOCKET GetSocket ()
 Get The RAW file id of the socket. More...
 
int SetBlocking ()
 Set the socket to block on subsequent calls to socket functions that address this socket. More...
 
int SetNonBlocking ()
 this function will throw a socket into non-blocking mode More...
 
int SetRecvBufferSize (int size)
 Ok it sets the recv buffer size for both tcp and UDP. More...
 
bool SetReuseAddress (bool flag)
 Informs a socket to reuse IP address as needed. More...
 
 SetSocket (SOCKET ins)
 Assigns an existing socket to this class. More...
 
bool SetV6Only (bool flag)
 Sets a flag indicating whether this IPv6 socket should operate in dual-stack mode or not. More...
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. 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 ()
 Gets the last errcode from a socket operation. More...
 
static int InitNetworkDriver ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 

Detailed Description

Base functionality for a UDP Reader.

Member Function Documentation

◆ __init__()

__init__ ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ InitNoAddress()

bool InitNoAddress ( )

Set this socket to work without a bound external address.

◆ OpenForInput() [1/2]

bool OpenForInput ( const SocketAddress  address)

Starts a UDP socket listening on a port.

◆ OpenForInput() [2/2]

bool OpenForInput ( unsigned short int  port)

Starts a UDP socket listening on a port.

◆ OpenForInputMCast()

bool OpenForInputMCast ( const SocketAddress  address)

Starts a UDP socket listening on a port.

◆ SendTo()

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

Send data to specified address.

◆ SetToBroadCast()

bool SetToBroadCast ( )

Flips the OS bits that allow for brodcast packets to come in on this port.