Classes | Public Types | Public Member Functions | Static Public Member Functions

cygnal::AMF_msg Class Reference

#include <amf_msg.h>

List of all members.

Classes

struct  amf_message_t
struct  context_header_t
struct  message_header_t

Public Types

enum  amf_version_e { 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::BufferencodeAMFPacket ()
boost::shared_ptr< cygnal::BufferencodeAMFPacket (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)

Detailed Description

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.


Member Enumeration Documentation

Enumerator:
AMF0 
AMF3 

Member Function Documentation

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]
void cygnal::AMF_msg::dump ( AMF_msg::message_header_t data  )  [static]
void cygnal::AMF_msg::dump (  ) 
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::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]
boost::shared_ptr< cygnal::Buffer > cygnal::AMF_msg::encodeContextHeader ( boost::uint16_t  version,
boost::uint16_t  headers,
boost::uint16_t  messages 
) [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]
boost::shared_ptr<amf_message_t>& cygnal::AMF_msg::getMessage ( int  x  )  [inline]
size_t cygnal::AMF_msg::messageCount (  )  [inline]
boost::shared_ptr< AMF_msg::context_header_t > cygnal::AMF_msg::parseAMFPacket ( cygnal::Buffer buf  ) 
boost::shared_ptr< AMF_msg::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::parseContextHeader ( boost::uint8_t *  data,
size_t  size 
) [static]
boost::shared_ptr< AMF_msg::context_header_t > cygnal::AMF_msg::parseContextHeader ( cygnal::Buffer data  )  [static]
boost::shared_ptr< AMF_msg::message_header_t > cygnal::AMF_msg::parseMessageHeader ( cygnal::Buffer data  )  [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.


The documentation for this class was generated from the following files: