#include <udpsocket.h>
Public Member Functions | |
| virtual auto_ptr< ByteArray > | receive (auto_ptr< IpAddress > &src_addr, auto_ptr< IpAddress > &dst_addr)=0 |
| Receives data from the UDP socket. | |
| virtual void | send (ByteArray &data, const IpAddress &src_addr, const IpAddress &dst_addr)=0 |
| Sends data through the UDP socket. | |
| virtual void | addSrcAddress (auto_ptr< IpAddress > new_src_address)=0 |
| Adds a new source address to receive from. | |
| virtual void | removeSrcAddress (const IpAddress &src_address)=0 |
| Removes a source address to receive from. | |
| virtual auto_ptr<ByteArray> openikev2::UdpSocket::receive | ( | auto_ptr< IpAddress > & | src_addr, | |
| auto_ptr< IpAddress > & | dst_addr | |||
| ) | [pure virtual] |
Receives data from the UDP socket.
| src_addr | Source address of the received UDP message (output parameter) | |
| dst_addr | Destination address of the received UDP message (output parameter) |
| virtual void openikev2::UdpSocket::send | ( | ByteArray & | data, | |
| const IpAddress & | src_addr, | |||
| const IpAddress & | dst_addr | |||
| ) | [pure virtual] |
Sends data through the UDP socket.
| data | Data to be sent | |
| src_addr | Source address of the UDP message to be sent | |
| dst_addr | Destination address of the UDP message to be sent |
| virtual void openikev2::UdpSocket::addSrcAddress | ( | auto_ptr< IpAddress > | new_src_address | ) | [pure virtual] |
Adds a new source address to receive from.
| new_src_address | New source address |
| virtual void openikev2::UdpSocket::removeSrcAddress | ( | const IpAddress & | src_address | ) | [pure virtual] |
Removes a source address to receive from.
| src_address | Source address to be removed |
1.5.1