PWLib
1.10.10
|
#include <ipdsock.h>
Public Member Functions | |
virtual BOOL | ReadFrom (void *buf, PINDEX len, Address &addr, WORD &port) |
virtual BOOL | WriteTo (const void *buf, PINDEX len, const Address &addr, WORD port) |
Protected Member Functions | |
PIPDatagramSocket () |
Internet Protocol Datagram Socket class.
PIPDatagramSocket::PIPDatagramSocket | ( | ) | [protected] |
Create a TCP/IP protocol socket channel. If a remote machine address or a "listening" socket is specified then the channel is also opened.
virtual BOOL PIPDatagramSocket::ReadFrom | ( | void * | buf, |
PINDEX | len, | ||
Address & | addr, | ||
WORD & | port | ||
) | [virtual] |
Read a datagram from a remote computer.
buf | Data to be written as URGENT TCP data. |
len | Number of bytes pointed to by #buf#. |
addr | Address from which the datagram was received. |
port | Port from which the datagram was received. |
Reimplemented in PSocksUDPSocket.
virtual BOOL PIPDatagramSocket::WriteTo | ( | const void * | buf, |
PINDEX | len, | ||
const Address & | addr, | ||
WORD | port | ||
) | [virtual] |
Write a datagram to a remote computer.
buf | Data to be written as URGENT TCP data. |
len | Number of bytes pointed to by #buf#. |
addr | Address to which the datagram is sent. |
port | Port to which the datagram is sent. |
Reimplemented in PSocksUDPSocket.