#include <payload_sa.h>
Inheritance diagram for openikev2::Payload_SA:

Public Member Functions | |
| Payload_SA () | |
| Creates a new empty Payload_SA. | |
| Payload_SA (auto_ptr< Proposal > first_proposal) | |
| Creates a new Payload_SA inserting the fisrt proposal. | |
| Payload_SA (const Payload_SA &other) | |
| Creates a new Payload_SA cloning another one. | |
| Payload_SA (ByteBuffer &byte_buffer) | |
| Creates a new Payload_SA based on its binary representation. | |
| void | addProposal (auto_ptr< Proposal > proposal) |
| Adds a proposal to the Payload SA. | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer) const |
| Appends the binary representation of the Payload at the end of the buffer, without the fixed header. | |
| virtual string | toStringTab (uint8_t tabs) const |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
| virtual auto_ptr< Payload > | clone () const |
| Cets a clone of this payload. | |
Public Attributes | |
| AutoVector< Proposal > | proposals |
| Proposals collections. | |
| openikev2::Payload_SA::Payload_SA | ( | auto_ptr< Proposal > | first_proposal | ) |
Creates a new Payload_SA inserting the fisrt proposal.
| first_proposal | First proposal to be inserted in the Payload_SA |
| openikev2::Payload_SA::Payload_SA | ( | const Payload_SA & | other | ) |
| openikev2::Payload_SA::Payload_SA | ( | ByteBuffer & | byte_buffer | ) |
Creates a new Payload_SA based on its binary representation.
| byte_buffer | Buffer with its read pointer at the "payload length" field |
| void openikev2::Payload_SA::addProposal | ( | auto_ptr< Proposal > | proposal | ) |
| void openikev2::Payload_SA::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | const [virtual] |
Appends the binary representation of the Payload at the end of the buffer, without the fixed header.
| byte_buffer | Byte buffer where append the binary representation |
Implements openikev2::Payload.
| string openikev2::Payload_SA::toStringTab | ( | uint8_t | tabs | ) | const [virtual] |
Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
| tabs | Num of tabs preceding the textual representation. |
Implements openikev2::Payload.
| auto_ptr< Payload > openikev2::Payload_SA::clone | ( | ) | const [virtual] |
1.5.1