Namespaces | Classes | Typedefs | Enumerations | Functions | Variables

hamcast Namespace Reference

This is the root namespace of hamcast. More...

Namespaces

namespace  ipc
namespace  util

Classes

class  connection_to_middleware_failed
 Thrown to indicate that the client was unable to connect to a running HAMcast middleware. More...
class  connection_to_middleware_lost
 Thrown to indicate that the client lost the connection to the middleware. More...
class  internal_interface_error
 Thrown to indicate that an IPC call failed because of an internal interface error. More...
class  requirement_failed
 Thrown by HC_REQUIRE(req) and HC_REQUIRE_VERBOSE(req,verbose_msg) if the requirement req evaluates to false. More...
struct  interface_property
 Holds context informations about an (middleware) interface. More...
class  multicast_packet
 Describes a received multicast packet. More...
class  multicast_socket
 Describes a hamcast multicast socket. More...
class  ref_counted
 This class implements intrusive reference counting to use derived classes in a boost::intrusive_ptr. More...
class  uri
 Uniform Resource Identifier (as defined in RFC 3986). More...

Typedefs

typedef boost::uint32_t interface_id
typedef boost::uint32_t socket_id

Enumerations

enum  connection_error {
  no_config_file_found,
  no_running_middleware_found,
  socket_creation_failed,
  incompatible_middleware_found
}

Functions

std::string version_string ()
void register_event_callback (const membership_event_callback &cb)

Variables

static const boost::uint32_t magic_number = 0xDEADC0DE
static const boost::uint32_t major_version = 0
static const boost::uint32_t minor_version = 4
static const boost::uint32_t min_compatile_major_version = 0
static const boost::uint32_t min_compatile_minor_version = 3
static const size_t default_max_buffer_size = 16 * 1024 * 1024
static const size_t default_block_size = 512
static const size_t max_pending_sends = 256
static const size_t max_buffered_sends = 512
static const size_t min_buffer_chunk = default_max_buffer_size / max_buffered_sends
static const size_t max_ack_block_size = 64
static const size_t force_ack_us_interval = 5000
static const size_t default_max_write_buffer_size = (1024 * 1024 * 5)
static const char * meeting_point = "/tmp/hamcast/meeting_point/middleware/"
static const char * meeting_point_root = "/tmp/"
static const char * lock_filename = "middleware.lock_file"
static const char * config_filename = "middleware.config_file"

Detailed Description

This is the root namespace of hamcast.

The hamcast namespace contains all needed classes and functions to write HAMcast based applications.


Typedef Documentation

typedef boost::uint32_t hamcast::interface_id

Describes the ID of a hamcast multicast interface.

typedef boost::uint32_t hamcast::socket_id

Describes the ID of a HAMcast socket.


Function Documentation

void hamcast::register_event_callback ( const membership_event_callback &  cb  ) 

Register cb.

Parameters:
cb Membership event callback.

Variable Documentation

const char* hamcast::meeting_point_root = "/tmp/" [static]

The root part of the meeting point path.

The HAMcast middleware creates all directories below this path on startup and removes them on termination.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator