#include <ipdsock.h>
Inheritance diagram for PIPDatagramSocket:
Public Member Functions | |
virtual PBoolean | ReadFrom (void *buf, PINDEX len, Address &addr, WORD &port) |
virtual PBoolean | WriteTo (const void *buf, PINDEX len, const Address &addr, WORD port) |
Protected Member Functions | |
PIPDatagramSocket () |
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 PBoolean 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 PBoolean 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.