zCm 0.1.0
Lightweight messaging toolkit
Loading...
Searching...
No Matches
zcm.h
Go to the documentation of this file.
1#ifndef ZCM_ZCM_H
2#define ZCM_ZCM_H
3
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#include <stddef.h>
14
15#include "zcm_domain.h"
16
20
22#define ZCM_OK 0
24#define ZCM_ERR (-1)
25
27typedef struct zcm_context zcm_context_t;
29typedef struct zcm_broker zcm_broker_t;
30
37
44
52zcm_broker_t *zcm_broker_start(zcm_context_t *ctx, const char *endpoint);
53
60
68
74const char *zcm_version_string(void);
75
85
87
88#ifdef __cplusplus
89} /* extern "C" */
90#endif
91
92#endif /* ZCM_ZCM_H */
const char * zcm_version_string(void)
Return the library version string.
zcm_broker_t * zcm_broker_start(zcm_context_t *ctx, const char *endpoint)
Start a broker service bound to the provided endpoint.
void zcm_broker_stop(zcm_broker_t *broker)
Stop and free a broker created by zcm_broker_start().
struct zcm_context zcm_context_t
Opaque process-wide context handle.
Definition zcm.h:27
zcm_context_t * zcm_context_new(void)
Create a new zCm context.
struct zcm_broker zcm_broker_t
Opaque broker handle.
Definition zcm.h:29
int zcm_broker_is_running(const zcm_broker_t *broker)
Check whether a broker service loop is still running.
void zcm_context_free(zcm_context_t *ctx)
Destroy a context created by zcm_context_new().
void * zcm_context_zmq(zcm_context_t *ctx)
Get the underlying ZeroMQ context pointer.
Shared zCm domain endpoint resolution helpers.