Panda3D
|
Base functionality for a combination UDP Reader and Writer. More...
#include "socket_udp.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
bool | InitNoAddress () |
This will set a udp up for targeted sends. | |
bool | InitToAddress (const Socket_Address &address) |
Connects the Socket to a Specified address. | |
bool | Send (const string &data) |
Send data to connected address. | |
bool | Send (const char *data, int len) |
Send data to connected address. | |
bool | SendTo (const string &data, const Socket_Address &address) |
Send data to specified address. | |
bool | SendTo (const char *data, int len, const Socket_Address &address) |
Send data to specified address. | |
bool | SetToBroadCast () |
Ask the OS to let us receive BROADCASt packets 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 combination UDP Reader and Writer.
This duplicates code from Socket_UDP_Outgoing, to avoid the problems of multiple inheritance.
Definition at line 28 of file socket_udp.h.
static void Socket_UDP::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_UDP_Incoming.
Definition at line 52 of file socket_udp.h.
References Socket_UDP_Incoming::init_type().
bool Socket_UDP::InitNoAddress | ( | ) | [inline] |
This will set a udp up for targeted sends.
Return type : inline bool Argument : void
Reimplemented from Socket_UDP_Incoming.
Definition at line 103 of file socket_udp.h.
References Socket_IP::Close().
Referenced by InitToAddress().
bool Socket_UDP::InitToAddress | ( | const Socket_Address & | address | ) | [inline] |
Connects the Socket to a Specified address.
Return type : inline bool Argument : NetAddress & address
Definition at line 86 of file socket_udp.h.
References InitNoAddress().
bool Socket_UDP::Send | ( | const char * | data, |
int | len | ||
) | [inline] |
Send data to connected address.
Return type : inline bool Argument : char * data Argument : int len
Definition at line 121 of file socket_udp.h.
Referenced by Send().
bool Socket_UDP::Send | ( | const string & | data | ) | [inline] |
Send data to connected address.
Return type : inline bool Argument : const string &data
Definition at line 133 of file socket_udp.h.
References Send().
bool Socket_UDP::SendTo | ( | const string & | data, |
const Socket_Address & | address | ||
) | [inline] |
Send data to specified address.
Return type : inline bool Argument : const string &data Argument : NetAddress & address
Definition at line 160 of file socket_udp.h.
References SendTo().
bool Socket_UDP::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 from Socket_UDP_Incoming.
Definition at line 147 of file socket_udp.h.
Referenced by SendTo().
bool Socket_UDP::SetToBroadCast | ( | ) | [inline] |
Ask the OS to let us receive BROADCASt packets on this port.
Return type : bool Argument : void
Reimplemented from Socket_UDP_Incoming.
Definition at line 71 of file socket_udp.h.