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
10
extern
"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
27
typedef
struct
zcm_context
zcm_context_t
;
29
typedef
struct
zcm_broker
zcm_broker_t
;
30
36
zcm_context_t
*
zcm_context_new
(
void
);
37
43
void
zcm_context_free
(
zcm_context_t
*ctx);
44
52
zcm_broker_t
*
zcm_broker_start
(
zcm_context_t
*ctx,
const
char
*endpoint);
53
59
void
zcm_broker_stop
(
zcm_broker_t
*broker);
60
67
int
zcm_broker_is_running
(
const
zcm_broker_t
*broker);
68
74
const
char
*
zcm_version_string
(
void
);
75
84
void
*
zcm_context_zmq
(
zcm_context_t
*ctx);
85
87
88
#ifdef __cplusplus
89
}
/* extern "C" */
90
#endif
91
92
#endif
/* ZCM_ZCM_H */
zcm_version_string
const char * zcm_version_string(void)
Return the library version string.
zcm_broker_start
zcm_broker_t * zcm_broker_start(zcm_context_t *ctx, const char *endpoint)
Start a broker service bound to the provided endpoint.
zcm_broker_stop
void zcm_broker_stop(zcm_broker_t *broker)
Stop and free a broker created by zcm_broker_start().
zcm_context_t
struct zcm_context zcm_context_t
Opaque process-wide context handle.
Definition
zcm.h:27
zcm_context_new
zcm_context_t * zcm_context_new(void)
Create a new zCm context.
zcm_broker_t
struct zcm_broker zcm_broker_t
Opaque broker handle.
Definition
zcm.h:29
zcm_broker_is_running
int zcm_broker_is_running(const zcm_broker_t *broker)
Check whether a broker service loop is still running.
zcm_context_free
void zcm_context_free(zcm_context_t *ctx)
Destroy a context created by zcm_context_new().
zcm_context_zmq
void * zcm_context_zmq(zcm_context_t *ctx)
Get the underlying ZeroMQ context pointer.
zcm_domain.h
Shared zCm domain endpoint resolution helpers.
include
zcm
zcm.h
Generated by
1.14.0