openikev2::UdpSocket Class Reference

This abstract class represents an UDP Socket. More...

#include <udpsocket.h>

List of all members.

Public Member Functions

virtual auto_ptr< ByteArrayreceive (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.


Detailed Description

This abstract class represents an UDP Socket.

Author:
Pedro J. Fernandez Ruiz, Alejandro Perez Mendez <pedroj.fernandez@dif.um.es, alejandro_perez@dif.um.es>


Member Function Documentation

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.

Parameters:
src_addr Source address of the received UDP message (output parameter)
dst_addr Destination address of the received UDP message (output parameter)
Returns:
Received UDP message data

virtual void openikev2::UdpSocket::send ( ByteArray data,
const IpAddress src_addr,
const IpAddress dst_addr 
) [pure virtual]

Sends data through the UDP socket.

Parameters:
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.

Parameters:
new_src_address New source address

virtual void openikev2::UdpSocket::removeSrcAddress ( const IpAddress src_address  )  [pure virtual]

Removes a source address to receive from.

Parameters:
src_address Source address to be removed


Generated on Fri Jul 27 11:04:57 2007 for libopenikev2 by  doxygen 1.5.1