Base functionality for a combination UDP Reader and Writer.
More...
#include "socket_udp.h"
List of all members.
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.
|
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.
Definition at line 28 of file socket_udp.h.
Member Function Documentation
| static void Socket_UDP::init_type |
( |
| ) |
[inline, static] |
| bool Socket_UDP::InitNoAddress |
( |
| ) |
[inline] |
| bool Socket_UDP::InitToAddress |
( |
const Socket_Address & |
address | ) |
[inline] |
| 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] |
| 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.
The documentation for this class was generated from the following files: