openikev2::PayloadFactory Class Reference

This class allows to create different Payloads using an unique method. More...

#include <payloadfactory.h>

List of all members.

Static Public Member Functions

static auto_ptr< PayloadcreatePayload (Payload::PAYLOAD_TYPE type, ByteBuffer &byte_buffer)
 Creates a new Payload based on its binary representation and type.


Detailed Description

This class allows to create different Payloads using an unique method.

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


Member Function Documentation

auto_ptr< Payload > openikev2::PayloadFactory::createPayload ( Payload::PAYLOAD_TYPE  type,
ByteBuffer byte_buffer 
) [static]

Creates a new Payload based on its binary representation and type.

Parameters:
type Payload type
byte_buffer Buffer with its read pointer at the "payload length" field
Returns:
The parsed payload


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