#include <amf_msg.h>
Classes | |
struct | amf_message_t |
struct | context_header_t |
struct | message_header_t |
Public Types | |
enum | amf_version_e { AMF0 = 0x00, AMF3 = 0x11, AMF0 = 0x00, AMF3 = 0x11 } |
enum | amf_version_e { AMF0 = 0x00, AMF3 = 0x11, AMF0 = 0x00, AMF3 = 0x11 } |
Public Member Functions | |
size_t | addMessage (boost::shared_ptr< amf_message_t > msg) |
boost::shared_ptr < amf_message_t > & | getMessage (int x) |
size_t | messageCount () |
boost::shared_ptr < context_header_t > | parseAMFPacket (cygnal::Buffer &buf) |
boost::shared_ptr < context_header_t > | parseAMFPacket (boost::uint8_t *data, size_t size) |
boost::shared_ptr< cygnal::Buffer > | encodeAMFPacket () |
boost::shared_ptr< cygnal::Buffer > | encodeAMFPacket (const std::string &target, const std::string &response, size_t size) |
void | dump () |
size_t | addMessage (boost::shared_ptr< amf_message_t > msg) |
boost::shared_ptr < amf_message_t > & | getMessage (int x) |
size_t | messageCount () |
boost::shared_ptr < context_header_t > | parseAMFPacket (cygnal::Buffer &buf) |
boost::shared_ptr < context_header_t > | parseAMFPacket (boost::uint8_t *data, size_t size) |
boost::shared_ptr< cygnal::Buffer > | encodeAMFPacket () |
boost::shared_ptr< cygnal::Buffer > | encodeAMFPacket (const std::string &target, const std::string &response, size_t size) |
void | dump () |
Static Public Member Functions | |
static boost::shared_ptr < cygnal::Buffer > | encodeContextHeader (context_header_t *head) |
static boost::shared_ptr < cygnal::Buffer > | encodeContextHeader (boost::uint16_t version, boost::uint16_t headers, boost::uint16_t messages) |
static boost::shared_ptr < cygnal::Buffer > | encodeMsgHeader (message_header_t *head) |
static boost::shared_ptr < cygnal::Buffer > | encodeMsgHeader (const std::string &target, const std::string &response, size_t size) |
static boost::shared_ptr < context_header_t > | parseContextHeader (cygnal::Buffer &data) |
static boost::shared_ptr < context_header_t > | parseContextHeader (boost::uint8_t *data, size_t size) |
static boost::shared_ptr < message_header_t > | parseMessageHeader (cygnal::Buffer &data) |
static boost::shared_ptr < message_header_t > | parseMessageHeader (boost::uint8_t *data, size_t size) |
static void | dump (context_header_t &data) |
static void | dump (message_header_t &data) |
static boost::shared_ptr < cygnal::Buffer > | encodeContextHeader (context_header_t *head) |
static boost::shared_ptr < cygnal::Buffer > | encodeContextHeader (boost::uint16_t version, boost::uint16_t headers, boost::uint16_t messages) |
static boost::shared_ptr < cygnal::Buffer > | encodeMsgHeader (message_header_t *head) |
static boost::shared_ptr < cygnal::Buffer > | encodeMsgHeader (const std::string &target, const std::string &response, size_t size) |
static boost::shared_ptr < context_header_t > | parseContextHeader (cygnal::Buffer &data) |
static boost::shared_ptr < context_header_t > | parseContextHeader (boost::uint8_t *data, size_t size) |
static boost::shared_ptr < message_header_t > | parseMessageHeader (cygnal::Buffer &data) |
static boost::shared_ptr < message_header_t > | parseMessageHeader (boost::uint8_t *data, size_t size) |
static void | dump (context_header_t &data) |
static void | dump (message_header_t &data) |
All numbers in AMF format are 8 byte doubles. Binary representation of an ActionScript object. AMF is used to send objects, whether to a SharedObject .sol file, a memory based LocalConnection segment, or over an RTMP connection for streaming.
size_t cygnal::AMF_msg::addMessage | ( | boost::shared_ptr< amf_message_t > | msg | ) | [inline] |
size_t cygnal::AMF_msg::addMessage | ( | boost::shared_ptr< amf_message_t > | msg | ) | [inline] |
void cygnal::AMF_msg::dump | ( | AMF_msg::context_header_t & | data | ) | [static] |
static void cygnal::AMF_msg::dump | ( | context_header_t & | data | ) | [static] |
static void cygnal::AMF_msg::dump | ( | message_header_t & | data | ) | [static] |
void cygnal::AMF_msg::dump | ( | AMF_msg::message_header_t & | data | ) | [static] |
void cygnal::AMF_msg::dump | ( | ) |
void cygnal::AMF_msg::dump | ( | ) |
boost::shared_ptr<cygnal::Buffer> cygnal::AMF_msg::encodeAMFPacket | ( | const std::string & | target, | |
const std::string & | response, | |||
size_t | size | |||
) |
boost::shared_ptr<cygnal::Buffer> cygnal::AMF_msg::encodeAMFPacket | ( | ) |
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeAMFPacket | ( | ) |
References encodeContextHeader(), and encodeMsgHeader().
Referenced by encodeAMFPacket().
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeAMFPacket | ( | const std::string & | target, | |
const std::string & | response, | |||
size_t | size | |||
) |
References encodeAMFPacket().
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeContextHeader | ( | AMF_msg::context_header_t * | head | ) | [static] |
References cygnal::AMF_msg::context_header_t::headers, cygnal::AMF_msg::context_header_t::messages, and cygnal::AMF_msg::context_header_t::version.
Referenced by encodeAMFPacket().
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeContextHeader | ( | boost::uint16_t | version, | |
boost::uint16_t | headers, | |||
boost::uint16_t | messages | |||
) | [static] |
static boost::shared_ptr<cygnal::Buffer> cygnal::AMF_msg::encodeContextHeader | ( | context_header_t * | head | ) | [static] |
static boost::shared_ptr<cygnal::Buffer> cygnal::AMF_msg::encodeContextHeader | ( | boost::uint16_t | version, | |
boost::uint16_t | headers, | |||
boost::uint16_t | messages | |||
) | [static] |
static boost::shared_ptr<cygnal::Buffer> cygnal::AMF_msg::encodeMsgHeader | ( | message_header_t * | head | ) | [static] |
static boost::shared_ptr<cygnal::Buffer> cygnal::AMF_msg::encodeMsgHeader | ( | const std::string & | target, | |
const std::string & | response, | |||
size_t | size | |||
) | [static] |
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeMsgHeader | ( | const std::string & | target, | |
const std::string & | response, | |||
size_t | size | |||
) | [static] |
References length, and cygnal::swapBytes().
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeMsgHeader | ( | AMF_msg::message_header_t * | head | ) | [static] |
References length, cygnal::AMF_msg::message_header_t::response, cygnal::AMF_msg::message_header_t::size, and cygnal::AMF_msg::message_header_t::target.
Referenced by encodeAMFPacket().
boost::shared_ptr<amf_message_t>& cygnal::AMF_msg::getMessage | ( | int | x | ) | [inline] |
boost::shared_ptr<amf_message_t>& cygnal::AMF_msg::getMessage | ( | int | x | ) | [inline] |
size_t cygnal::AMF_msg::messageCount | ( | ) | [inline] |
size_t cygnal::AMF_msg::messageCount | ( | ) | [inline] |
boost::shared_ptr<context_header_t> cygnal::AMF_msg::parseAMFPacket | ( | cygnal::Buffer & | buf | ) |
boost::shared_ptr<context_header_t> cygnal::AMF_msg::parseAMFPacket | ( | boost::uint8_t * | data, | |
size_t | size | |||
) |
boost::shared_ptr< AMF_msg::context_header_t > cygnal::AMF_msg::parseAMFPacket | ( | cygnal::Buffer & | buf | ) |
References cygnal::Buffer::reference(), and cygnal::Buffer::size().
boost::shared_ptr< AMF_msg::context_header_t > cygnal::AMF_msg::parseAMFPacket | ( | boost::uint8_t * | data, | |
size_t | size | |||
) |
Read all the messages from the AMF packet
Read all the messages from the AMF packet
References gnash::key::e, cygnal::AMF::extractAMF(), gnash::key::i, parseContextHeader(), parseMessageHeader(), and cygnal::AMF::totalsize().
boost::shared_ptr< AMF_msg::context_header_t > cygnal::AMF_msg::parseContextHeader | ( | cygnal::Buffer & | data | ) | [static] |
References cygnal::Buffer::reference(), and cygnal::Buffer::size().
Referenced by parseAMFPacket().
static boost::shared_ptr<context_header_t> cygnal::AMF_msg::parseContextHeader | ( | cygnal::Buffer & | data | ) | [static] |
boost::shared_ptr< AMF_msg::context_header_t > cygnal::AMF_msg::parseContextHeader | ( | boost::uint8_t * | data, | |
size_t | size | |||
) | [static] |
static boost::shared_ptr<context_header_t> cygnal::AMF_msg::parseContextHeader | ( | boost::uint8_t * | data, | |
size_t | size | |||
) | [static] |
static boost::shared_ptr<message_header_t> cygnal::AMF_msg::parseMessageHeader | ( | cygnal::Buffer & | data | ) | [static] |
static boost::shared_ptr<message_header_t> cygnal::AMF_msg::parseMessageHeader | ( | boost::uint8_t * | data, | |
size_t | size | |||
) | [static] |
boost::shared_ptr< AMF_msg::message_header_t > cygnal::AMF_msg::parseMessageHeader | ( | boost::uint8_t * | data, | |
size_t | size | |||
) | [static] |
References __FUNCTION__, and length.
boost::shared_ptr< AMF_msg::message_header_t > cygnal::AMF_msg::parseMessageHeader | ( | cygnal::Buffer & | data | ) | [static] |
References cygnal::Buffer::reference(), and cygnal::Buffer::size().
Referenced by parseAMFPacket().