#include <udpsock.h>
Inheritance diagram for PUDPSocket:
New functions for class | |
void | SetSendAddress (const Address &address, WORD port) |
void | GetSendAddress (Address &address, WORD &port) |
virtual PBoolean | ModifyQoSSpec (PQoS *qos) |
void | GetLastReceiveAddress (Address &address, WORD &port) |
static PBoolean | SupportQoS (const PIPSocket::Address &address) |
static void | EnableGQoS () |
Public Member Functions | |
Overrides from class PSocket | |
PBoolean | Read (void *buf, PINDEX len) |
PBoolean | Write (const void *buf, PINDEX len) |
PBoolean | Connect (const PString &address) |
Protected Member Functions | |
virtual PBoolean | OpenSocket () |
virtual PBoolean | OpenSocket (int ipAdressFamily) |
virtual PBoolean | OpenSocketGQOS (int af, int type, int proto) |
virtual PBoolean | ApplyQoS () |
virtual const char * | GetProtocolName () const |
Protected Attributes | |
Address | sendAddress |
WORD | sendPort |
Address | lastReceiveAddress |
WORD | lastReceivePort |
PQoS | qosSpec |
PUDPSocket::PUDPSocket | ( | WORD | port = 0 |
) |
Create a UDP socket. If a remote machine address or a "listening" socket is specified then the channel is also opened.
port | Port number to use for the connection. |
PUDPSocket::PUDPSocket | ( | PQoS * | qos, | |
WORD | port = 0 | |||
) |
qos | Pointer to a QOS structure for the connection |
port | Port number to use for the connection. |
service | Service name to use for the connection. |
qos | Pointer to a QOS structure for the connection |
PUDPSocket::PUDPSocket | ( | const PString & | address, | |
WORD | port | |||
) |
address | Address of remote machine to connect to. |
port | Port number to use for the connection. |
address | Address of remote machine to connect to. |
service | Service name to use for the connection. |
PUDPSocket::PUDPSocket | ( | WORD | port = 0 |
) |
Create a UDP socket. If a remote machine address or a "listening" socket is specified then the channel is also opened.
port | Port number to use for the connection. |
PUDPSocket::PUDPSocket | ( | PQoS * | qos, | |
WORD | port = 0 | |||
) |
qos | Pointer to a QOS structure for the connection |
port | Port number to use for the connection. |
service | Service name to use for the connection. |
qos | Pointer to a QOS structure for the connection |
PUDPSocket::PUDPSocket | ( | const PString & | address, | |
WORD | port | |||
) |
address | Address of remote machine to connect to. |
port | Port number to use for the connection. |
address | Address of remote machine to connect to. |
service | Service name to use for the connection. |
PBoolean PUDPSocket::Read | ( | void * | buf, | |
PINDEX | len | |||
) | [virtual] |
PBoolean PUDPSocket::Write | ( | const void * | buf, | |
PINDEX | len | |||
) | [virtual] |
Override of PSocket functions to allow connectionless writes
address | Address of remote machine to connect to. |
Reimplemented from PIPSocket.
Reimplemented in PSocksUDPSocket.
void PUDPSocket::SetSendAddress | ( | const Address & | address, | |
WORD | port | |||
) |
Set the address to use for connectionless Write() or Windows QoS
address | IP address to send packets. |
port | Port to send packets. |
void PUDPSocket::GetSendAddress | ( | Address & | address, | |
WORD & | port | |||
) |
Get the address to use for connectionless Write().
address | IP address to send packets. |
port | Port to send packets. |
Change the QOS spec for the socket and try to apply the changes
qos | QoS specification to use |
void PUDPSocket::GetLastReceiveAddress | ( | Address & | address, | |
WORD & | port | |||
) |
Get the address of the sender in the last connectionless Read(). Note that thsi only applies to the Read() and not the ReadFrom() function.
address | IP address to send packets. |
port | Port to send packets. |
static PBoolean PUDPSocket::SupportQoS | ( | const PIPSocket::Address & | address | ) | [static] |
Check to See if the socket will support QoS on the given local Address
static void PUDPSocket::EnableGQoS | ( | ) | [static] |
Manually Enable GQoS Support
virtual PBoolean PUDPSocket::OpenSocket | ( | int | ipAdressFamily | ) | [protected, virtual] |
Implements PIPSocket.
virtual PBoolean PUDPSocket::OpenSocketGQOS | ( | int | af, | |
int | type, | |||
int | proto | |||
) | [protected, virtual] |
virtual PBoolean PUDPSocket::ApplyQoS | ( | ) | [protected, virtual] |
virtual const char* PUDPSocket::GetProtocolName | ( | ) | const [protected, virtual] |
This function returns the protocol name for the socket type.
Implements PSocket.
Address PUDPSocket::sendAddress [protected] |
WORD PUDPSocket::sendPort [protected] |
Address PUDPSocket::lastReceiveAddress [protected] |
WORD PUDPSocket::lastReceivePort [protected] |
PQoS PUDPSocket::qosSpec [protected] |