/home/elb/work/cs590n/mace/mace/lib/MaceBasics.h File Reference


Detailed Description

NOTICE: This file shall ONLY be used for things which have to do with simple constants and types.

Including this file MUST NOT require inclusion of any STL or other mace headers.

Definition in file MaceBasics.h.

#include <stdint.h>
#include <sys/types.h>
#include <limits>

Include dependency graph for MaceBasics.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mace

Typedefs

typedef int32_t channel_id_t
 Type used for sub-dividing APIs into channels.
typedef int32_t registration_uid_t
 Registration ids are how callers and callees identify each other.

Variables

const int8_t mace::UNDEFINED_ADDRESS = 0
 MaceKey of this type has no sub-type or helper. MaceKey::isNullAddress() would return true.
const int8_t mace::IPV4 = 1
 MaceKey of this type represents an IPV4 address.
const int8_t mace::SHA160 = 2
 MaceKey of this type represents a 160-bit address (generally based on the SHA1 of something).
const int8_t mace::SHA32 = 3
 MaceKey of this type represents a 32-bit address (generally based on the SHA1 of something).
const int8_t mace::STRING_ADDRESS = 4
 MaceKey of this type is a generic string.
const int8_t mace::NUM_ADDRESSES = 5
 The number of MaceKey address families.


Typedef Documentation

typedef int32_t registration_uid_t

Registration ids are how callers and callees identify each other.

When a higher level registers a Handler with a ServiceClass object, it either passes in or receives a registration uid. This id serves to identify the link between the two objects. The same registration uid is used whether it is a call down into the ServiceClass, or a call from the ServiceClass into the handler. When a registration uid is passed into a ServiceClass method, any callbacks or other side-effects as a result of that call will be delivered to the registered Handler with the same registration uid. Similarly, the Handler can use the registration uid to tell what lower level service delivered the upcall (in the event it is multiply registered).

Definition at line 91 of file MaceBasics.h.


Generated on Sat Oct 4 21:30:04 2008 for Mace Library by  doxygen 1.5.5