#include <udpsock.h>
Inheritance diagram for PUDPSocket:
Public Member Functions | |
Construction | |
PUDPSocket (WORD port=0) | |
PUDPSocket (PQoS *qos, WORD port=0) | |
PUDPSocket (const PString &service, PQoS *qos=NULL) | |
PUDPSocket (const PString &address, WORD port) | |
PUDPSocket (const PString &address, const PString &service) | |
Overrides from class PSocket | |
BOOL | Read (void *buf, PINDEX len) |
BOOL | Write (const void *buf, PINDEX len) |
BOOL | Connect (const PString &address) |
New functions for class | |
void | SetSendAddress (const Address &address, WORD port) |
void | GetSendAddress (Address &address, WORD &port) |
virtual BOOL | ModifyQoSSpec (PQoS *qos) |
void | GetLastReceiveAddress (Address &address, WORD &port) |
Protected Member Functions | |
virtual BOOL | OpenSocket () |
virtual BOOL | OpenSocket (int ipAdressFamily) |
virtual int | OpenSocketGQOS (int af, int type, int proto) |
virtual BOOL | ApplyQoS () |
virtual const char * | GetProtocolName () const |
Protected Attributes | |
Address | sendAddress |
WORD | sendPort |
Address | lastReceiveAddress |
WORD | lastReceivePort |
PQoS | qosSpec |
|
Create a UDP socket. If a remote machine address or a "listening" socket is specified then the channel is also opened.
|
|
|
|
|
|
|
|
|
|
|
|
Override of PSocket functions to allow connectionless writes
Reimplemented from PIPSocket. Reimplemented in PSocksUDPSocket. |
|
Get the address of the sender in the last connectionless Read(). Note that thsi only applies to the Read() and not the ReadFrom() function.
|
|
This function returns the protocol name for the socket type. Implements PSocket. |
|
Get the address to use for connectionless Write().
|
|
Change the QOS spec for the socket and try to apply the changes
|
|
Implements PIPSocket. |
|
Implements PSocket. |
|
|
|
Override of PChannel functions to allow connectionless reads
Reimplemented from PSocket. |
|
Set the address to use for connectionless Write() or Windows QoS
|
|
Override of PChannel functions to allow connectionless writes
Reimplemented from PChannel. |
|
|
|
|
|
|
|
|
|
|