Panda3D
|
Base functionality for a UDP Reader. More...
#include "socket_udp_incoming.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
bool | GetPacket (char *data, int *max_len, Socket_Address &address) |
Grabs a dataset off the listening UDP socket and fills in the source address information. | |
bool | InitNoAddress () |
Set this socket to work with out a bound external address. | |
bool | OpenForInput (const Socket_Address &address) |
Starts a UDP socket listening on a port. | |
bool | OpenForInputMCast (const Socket_Address &address) |
Starts a UDP socket listening on a port. | |
bool | SendTo (const char *data, int len, const Socket_Address &address) |
Send data to specified address. | |
bool | SetToBroadCast () |
Flips the OS bits that allow for brodcast packets to com in on this port. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Base functionality for a UDP Reader.
Definition at line 14 of file socket_udp_incoming.h.
bool Socket_UDP_Incoming::GetPacket | ( | char * | data, |
int * | max_len, | ||
Socket_Address & | address | ||
) | [inline] |
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
Definition at line 137 of file socket_udp_incoming.h.
References Socket_IP::GetLastError().
static void Socket_UDP_Incoming::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from Socket_IP.
Reimplemented in Socket_UDP.
Definition at line 30 of file socket_udp_incoming.h.
References Socket_IP::init_type().
Referenced by Socket_UDP::init_type().
bool Socket_UDP_Incoming::InitNoAddress | ( | ) | [inline] |
Set this socket to work with out a bound external address.
Return type : inline bool Argument : void
Reimplemented in Socket_UDP.
Definition at line 66 of file socket_udp_incoming.h.
References Socket_IP::Close().
bool Socket_UDP_Incoming::OpenForInput | ( | const Socket_Address & | address | ) | [inline] |
Starts a UDP socket listening on a port.
Return type : bool Argument : NetAddress & address
Definition at line 83 of file socket_udp_incoming.h.
References Socket_IP::Close().
bool Socket_UDP_Incoming::OpenForInputMCast | ( | const Socket_Address & | address | ) | [inline] |
Starts a UDP socket listening on a port.
Return type : bool Argument : NetAddress & address
Definition at line 103 of file socket_udp_incoming.h.
References Socket_IP::Close(), Socket_Address::get_port(), and Socket_IP::GetSocket().
bool Socket_UDP_Incoming::SendTo | ( | const char * | data, |
int | len, | ||
const Socket_Address & | address | ||
) | [inline] |
Send data to specified address.
Return type : inline bool Argument : char * data Argument : int len Argument : NetAddress & address
Reimplemented in Socket_UDP.
Definition at line 161 of file socket_udp_incoming.h.
bool Socket_UDP_Incoming::SetToBroadCast | ( | ) | [inline] |
Flips the OS bits that allow for brodcast packets to com in on this port.
Return type : bool Argument : void
Reimplemented in Socket_UDP.
Definition at line 52 of file socket_udp_incoming.h.