Namespaces | Defines | Variables

lcshm.cpp File Reference

#include <cerrno>
#include <vector>
#include <string>
#include <cstring>
#include <boost/cstdint.hpp>
#include <boost/shared_ptr.hpp>
#include "log.h"
#include "buffer.h"
#include "amf.h"
#include "SharedMem.h"
#include "element.h"
#include "GnashException.h"
#include "lcshm.h"
Include dependency graph for lcshm.cpp:

Namespaces

namespace  cygnal
 

Action Message Format specific classes of libamf.


Defines

#define MAXHOSTNAMELEN   64
#define ENSUREBYTES(from, toofar, size)

Variables

const int cygnal::AMF_BOOLEAN_SIZE = 3
const int cygnal::LC_HEADER_SIZE = 16
const int cygnal::MAX_LC_HEADER_SIZE = 40960
const int cygnal::LC_LISTENERS_START = MAX_LC_HEADER_SIZE + LC_HEADER_SIZE

Define Documentation

#define ENSUREBYTES (   from,
  toofar,
  size 
)
Value:
{ \
        if ( from+size >= toofar ) \
                throw gnash::ParserException("Premature end of AMF stream"); \
}

ENSUREBYTES

Parameters:
from The base address to check.
tooFar The ending address that is one byte too many.
size The number of bytes to check for: from to tooFar.
Remarks:
May throw an Exception

Referenced by cygnal::LcShm::parseHeader().

#define MAXHOSTNAMELEN   64

This doesn't exist on all systems, but here's the value used on Unix.