|
|
|
|
/home/brennan/Software/sensix/source/discovery_service.h File ReferenceSENSIX discovery service. More...
#include <stdint.h>
#include "sense_impl.h"
Go to the source code of this file.
|
Classes |
struct | _obj_ref |
struct | _announce |
struct | _report |
struct | _require |
struct | _share |
struct | _discoverhdr |
struct | _discovermsg |
struct | _disc_args |
Defines |
#define | DISCOVERY_PORT 2999 |
#define | MCAST_ADDR_IPv6 "FF18::178" |
#define | MCAST_ADDR_IPv4 "224.0.0.178" |
#define | MCAST_ADDR MCAST_ADDR_IPv4 |
#define | TX_TIMEOUT 12 |
#define | RETRY_ITVL 4 |
#define | EMPTY_TIMEOUT 1000 |
#define | DISCOVERY_HEADER_SIZE 8 |
#define | TOO_SMALL -100 |
#define | REGISTRY_FULL (0 - RegistryFull) |
#define | ALREADY_REGISTERED (0 - AlreadyRegistered) |
#define | INVALID_OBJECT (0 - InvalidObject) |
#define | NO_NODE (0 - NoNode) |
#define | NO_NETWORK (0 - NoNetwork) |
#define | NO_CAPABILITY (0 - NoCapability) |
#define | OBJ_REF_SIZE 2048 |
#define | ANNOUNCE_SIZE 5 |
#define | REPORT_SIZE 6 |
#define | REQUIRE_SIZE 10 |
Typedefs |
typedef struct _obj_ref | object_reference_t |
typedef struct _announce | Announce |
typedef struct _report | Report |
typedef struct _require | Require |
typedef struct _share | Share |
typedef struct _discoverhdr | DiscoverHeader |
typedef struct _discovermsg | DiscoverMessage |
typedef struct _disc_args | discovery_args_t |
Enumerations |
enum | DiscoveryError {
RegistryFull,
AlreadyRegistered,
BadORB,
InvalidObject,
NoNode,
NoNetwork,
NoCapability
} |
Functions |
void | announceHeader (uint8_t *hdr) |
void | reportHeader (uint8_t *hdr) |
void | requireHeader (uint8_t *hdr) |
void | shareHeader (uint8_t *hdr, Share *shr) |
void | loadAnnounce (uint8_t *msg, Announce *ann) |
void | loadReport (uint8_t *msg, Report *rpt) |
void | loadRequire (uint8_t *msg, Require *req) |
void | loadShare (uint8_t *msg, Share *shr) |
int | parseDiscoverHeader (DiscoverHeader *hdr, unsigned char *bytes) |
int | parseDiscoverMessage (DiscoverMessage *dm, DiscoverHeader *hdr, unsigned char *bytes) |
uint8_t | self_level () |
uint32_t | self_identifier () |
int | self_capabilities (uint8_t *caps, size_t *size) |
int | self_register_object (uint8_t capability, object_reference_t *obj, bool_t override) |
bool_t | descendants_findNode (uint32_t id) |
int | descendants_queryNetwork (object_reference_t *objrefs, size_t *num, uint8_t capability) |
int | descendants_queryNode (object_reference_t *objref, uint32_t id, uint8_t capability) |
int | descendants_capabilities (uint8_t *caps, size_t *num) |
int | descendants_nodes (uint32_t *ids, size_t *num) |
bool_t | siblings_findNode (uint32_t id) |
int | siblings_queryNetwork (object_reference_t *objrefs, size_t *num, uint8_t capability) |
int | siblings_queryNode (object_reference_t *objref, uint32_t id, uint8_t capability) |
int | siblings_capabilities (uint8_t *caps, size_t *num) |
int | siblings_nodes (uint32_t *ids, size_t *num) |
bool_t | ancestors_findNode (uint32_t id) |
int | ancestors_nodes (uint32_t *ids, size_t *num) |
bool_t | family_findNode (uint32_t id) |
int | family_queryNetwork (object_reference_t *objrefs, size_t *num, uint8_t capability) |
int | family_queryNode (object_reference_t *objref, uint32_t id, uint8_t capability) |
void * | discovery_service (void *args) |
Detailed Description
SENSIX discovery service.
- Revision
- 1.9
- Author
- sean_m_brennan
- Date
- 2009/07/04 03:59:32
Definition in file discovery_service.h.
Define Documentation
#define ALREADY_REGISTERED (0 - AlreadyRegistered) |
#define DISCOVERY_HEADER_SIZE 8 |
#define DISCOVERY_PORT 2999 |
#define EMPTY_TIMEOUT 1000 |
#define INVALID_OBJECT (0 - InvalidObject) |
#define MCAST_ADDR MCAST_ADDR_IPv4 |
#define MCAST_ADDR_IPv4 "224.0.0.178" |
#define MCAST_ADDR_IPv6 "FF18::178" |
#define NO_CAPABILITY (0 - NoCapability) |
#define NO_NETWORK (0 - NoNetwork) |
#define NO_NODE (0 - NoNode) |
#define OBJ_REF_SIZE 2048 |
#define REGISTRY_FULL (0 - RegistryFull) |
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
-
RegistryFull |
|
AlreadyRegistered |
|
BadORB |
|
InvalidObject |
|
NoNode |
|
NoNetwork |
|
NoCapability |
|
Definition at line 43 of file discovery_service.h.
Function Documentation
bool_t ancestors_findNode |
( |
uint32_t |
id |
) |
|
int ancestors_nodes |
( |
uint32_t * |
ids, |
|
|
size_t * |
num | |
|
) |
| | |
void announceHeader |
( |
uint8_t * |
hdr |
) |
|
int descendants_capabilities |
( |
uint8_t * |
caps, |
|
|
size_t * |
num | |
|
) |
| | |
bool_t descendants_findNode |
( |
uint32_t |
id |
) |
|
int descendants_nodes |
( |
uint32_t * |
ids, |
|
|
size_t * |
num | |
|
) |
| | |
int descendants_queryNetwork |
( |
object_reference_t * |
objrefs, |
|
|
size_t * |
num, |
|
|
uint8_t |
capability | |
|
) |
| | |
int descendants_queryNode |
( |
object_reference_t * |
objref, |
|
|
uint32_t |
id, |
|
|
uint8_t |
capability | |
|
) |
| | |
void* discovery_service |
( |
void * |
args |
) |
|
bool_t family_findNode |
( |
uint32_t |
id |
) |
|
int family_queryNetwork |
( |
object_reference_t * |
objrefs, |
|
|
size_t * |
num, |
|
|
uint8_t |
capability | |
|
) |
| | |
void loadAnnounce |
( |
uint8_t * |
msg, |
|
|
Announce * |
ann | |
|
) |
| | |
void loadReport |
( |
uint8_t * |
msg, |
|
|
Report * |
rpt | |
|
) |
| | |
void loadRequire |
( |
uint8_t * |
msg, |
|
|
Require * |
req | |
|
) |
| | |
void loadShare |
( |
uint8_t * |
msg, |
|
|
Share * |
shr | |
|
) |
| | |
int parseDiscoverHeader |
( |
DiscoverHeader * |
hdr, |
|
|
unsigned char * |
bytes | |
|
) |
| | |
void reportHeader |
( |
uint8_t * |
hdr |
) |
|
void requireHeader |
( |
uint8_t * |
hdr |
) |
|
int self_capabilities |
( |
uint8_t * |
caps, |
|
|
size_t * |
size | |
|
) |
| | |
uint32_t self_identifier |
( |
|
) |
|
void shareHeader |
( |
uint8_t * |
hdr, |
|
|
Share * |
shr | |
|
) |
| | |
int siblings_capabilities |
( |
uint8_t * |
caps, |
|
|
size_t * |
num | |
|
) |
| | |
bool_t siblings_findNode |
( |
uint32_t |
id |
) |
|
int siblings_nodes |
( |
uint32_t * |
ids, |
|
|
size_t * |
num | |
|
) |
| | |
int siblings_queryNetwork |
( |
object_reference_t * |
objrefs, |
|
|
size_t * |
num, |
|
|
uint8_t |
capability | |
|
) |
| | |
|