1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
#include <zmq.h>
#include <assert.h>
void *zmq_ctx_new (void) {
return NULL;
}
void *zmq_socket (void *, int type) {
return NULL;
}
int zmq_close (void *s) {
return (-1);
}
int zmq_setsockopt (void *s, int option, const void *optval,size_t optvallen) {
return (-1);
}
int zmq_getsockopt (void *s, int option, void *optval,
size_t *optvallen) {
return (-1);
}
int zmq_bind (void *s, const char *addr) {
return (-1);
}
void *zmq_init (int io_threads) {
return NULL;
}
int zmq_term (void *context) {
return (-1);
}
int zmq_ctx_destroy (void *context) {
return (-1);
}
int zmq_connect (void *s, const char *addr) {
return (-1);
}
int zmq_send (void *s, const void *buf, size_t len, int flags) {
return (-1);
}
int zmq_recv (void *s, void *buf, size_t len, int flags) {
return (-1);
}
int zmq_errno (void) {
return (-1);
}
const char *zmq_strerror (int errnum) {
return "";
}
int zmq_msg_init (zmq_msg_t *msg) {
return (-1);
}
int zmq_msg_recv (zmq_msg_t *msg, void *s, int flags) {
return (-1);
}
int zmq_msg_close (zmq_msg_t *msg) {
return (-1);
}
void *zmq_msg_data (zmq_msg_t *msg) {
return NULL;
}
size_t zmq_msg_size (zmq_msg_t *msg) {
return (0);
}
|