34 #ifndef PTLIB_UDPSOCKET_H 35 #define PTLIB_UDPSOCKET_H 59 int iAddressFamily = AF_INET
64 int iAddressFamily = AF_INET
69 int iAddressFamily = AF_INET
196 #include "msos/ptlib/udpsock.h" 198 #include "unix/ptlib/udpsock.h" 213 PWinQoS(
PQoS & pqos,
struct sockaddr * to,
char * inBuf, DWORD & bufLen);
226 #endif // PTLIB_UDPSOCKET_H PQoS qosSpec
Definition: udpsock.h:192
WORD lastReceivePort
Definition: udpsock.h:190
Address sendAddress
Definition: udpsock.h:186
virtual PQoS & GetQoSSpec()
Get the QOS object for the socket.
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
PString GetSendAddress() const
A socket channel that uses the UDP transport on the Internet Protocol.
Definition: udpsock.h:47
virtual PBoolean OpenSocket()
WORD port
Port to be used by the socket when opening the channel.
Definition: socket.h:444
PBoolean Connect(const PString &address)
Override of PSocket functions to allow connectionless writes.
virtual PBoolean ApplyQoS()
PUDPSocket(WORD port=0, int iAddressFamily=AF_INET)
Create a UDP socket.
BOOL PBoolean
Definition: object.h:102
WORD sendPort
Definition: udpsock.h:187
PBoolean Read(void *buf, PINDEX len)
Override of PChannel functions to allow connectionless reads.
PBoolean Write(const void *buf, PINDEX len)
Override of PChannel functions to allow connectionless writes.
virtual const char * GetProtocolName() const
This function returns the protocol name for the socket type.
virtual PBoolean IsAlternateAddress(const Address &address, WORD port)
CallBack to check if the detected address of the connectionless Read() is an alternate address...
PString GetLastReceiveAddress() const
virtual PBoolean DoPseudoRead(int &selectStatus)
PseudoRead This indicates to the upper system that reading on this socket will be a pseudo read when ...
void SetSendAddress(const Address &address, WORD port)
Set the address to use for connectionless Write() or Windows QoS.
The character string class.
Definition: pstring.h:108
Address lastReceiveAddress
Definition: udpsock.h:189
static void EnableGQoS()
Manually Enable GQoS Support.
virtual PBoolean OpenSocketGQOS(int af, int type, int proto)
static PBoolean SupportQoS(const PIPSocket::Address &address)
Check to See if the socket will support QoS on the given local Address.
A class describing an IP address.
Definition: ipsock.h:75
Internet Protocol Datagram Socket class.
Definition: ipdsock.h:45
virtual PBoolean ModifyQoSSpec(PQoS *qos)
Change the QOS spec for the socket and try to apply the changes.
Ultimate parent class for all objects in the class library.
Definition: object.h:1118