/[eiffelstudio]/branches/eth/eve/Src/library/zeromq/wrapper/zmq_api.e
ViewVC logotype

Contents of /branches/eth/eve/Src/library/zeromq/wrapper/zmq_api.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92811 - (show annotations)
Fri Jul 26 04:35:53 2013 UTC (6 years, 2 months ago) by jasonw
File size: 6050 byte(s)
<<Merged from trunk#92810.>>
1 note
2 description: "Summary description for {ZMQ_API}."
3 author: ""
4 date: "$Date$"
5 revision: "$Revision$"
6
7 class
8 ZMQ_API
9
10 feature -- External calls
11
12 zmq_init (an_io_threads: INTEGER_32): POINTER
13 -- old legacy API
14 -- ZMQ_EXPORT void *zmq_init (int io_threads);
15 external
16 "C inline use <zmq.h>"
17 alias
18 "return zmq_init ((int)$an_io_threads);"
19 end
20
21 zmq_setsockopt (a_s: POINTER; an_option: INTEGER_32; an_optval: POINTER; an_optvallen: NATURAL_32): INTEGER_32
22 --ZMQ_EXPORT int zmq_setsockopt (void *s, int option, const void *optval,size_t optvallen);
23
24 external
25 "C inline use <zmq.h>"
26 alias
27 "return zmq_setsockopt ((void *)$a_s, (int)$an_option, (const void *)$an_optval,(size_t)$an_optvallen);"
28 end
29
30 zmq_msg_init_size (a_msg: POINTER; a_size: NATURAL_32): INTEGER_32
31 -- ZMQ_EXPORT int zmq_msg_init_size (zmq_msg_t *msg, size_t size);
32 external
33 "C inline use <zmq.h>"
34 alias
35 "return zmq_msg_init_size ((zmq_msg_t *)$a_msg, (size_t)$a_size);"
36 end
37
38 zmq_send (a_s: POINTER; a_msg: POINTER; a_msg_length: INTEGER; a_flags: INTEGER_32): INTEGER_32
39 -- ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags);
40 external
41 "C inline use <zmq.h>"
42 alias
43 "return zmq_send ((void *) $a_s, (const void *) $a_msg, (size_t) $a_msg_length, (int)$a_flags);"
44 end
45
46 zmq_sendmsg (a_s: POINTER; a_msg: POINTER; a_flags: INTEGER_32): INTEGER_32
47 --ZMQ_EXPORT int zmq_sendmsg (void *s, zmq_msg_t *msg, int flags);
48 external
49 "C inline use <zmq.h>"
50 alias
51 "return zmq_sendmsg ((void *)$a_s, (zmq_msg_t *)$a_msg, (int)$a_flags);"
52 end
53
54 zmq_msg_copy (a_dest: POINTER; a_src: POINTER): INTEGER_32
55 -- ZMQ_EXPORT int zmq_msg_copy (zmq_msg_t *dest, zmq_msg_t *src);
56 external
57 "C inline use <zmq.h>"
58 alias
59 "return zmq_msg_copy ((zmq_msg_t *)$a_dest, (zmq_msg_t *)$a_src);"
60 end
61
62 zmq_stopwatch_stop (a_watch: POINTER): NATURAL_32
63 -- ZMQ_EXPORT unsigned long zmq_stopwatch_stop (void *watch_);
64 external
65 "C inline use <zmq_utils.h>"
66 alias
67 "return zmq_stopwatch_stop ((void *)$a_watch);"
68 end
69
70 zmq_msg_close (a_msg: POINTER): INTEGER_32
71 -- ZMQ_EXPORT int zmq_msg_close (zmq_msg_t *msg);
72 external
73 "C inline use <zmq.h>"
74 alias
75 "return zmq_msg_close((zmq_msg_t *)$a_msg);"
76 end
77
78 zmq_msg_size (a_msg: POINTER): NATURAL_64
79 -- ZMQ_EXPORT size_t zmq_msg_size (zmq_msg_t *msg);
80 external
81 "C inline use <zmq.h>"
82 alias
83 "return zmq_msg_size ((zmq_msg_t *)$a_msg);"
84 end
85
86 zmq_socket (a_context: POINTER; a_type: INTEGER_32): POINTER
87 -- ZMQ_EXPORT void *zmq_socket (void *context, int type);
88 external
89 "C inline use <zmq.h>"
90 alias
91 "return zmq_socket ((void *)$a_context, (int)$a_type);"
92 end
93
94 zmq_strerror (an_errnum: INTEGER_32): POINTER
95 -- ZMQ_EXPORT const char *zmq_strerror (int errnum);
96 external
97 "C inline use <zmq.h>"
98 alias
99 "return (EIF_POINTER) zmq_strerror ((int)$an_errnum);"
100 end
101
102 zmq_close (a_s: POINTER): INTEGER_32
103 -- ZMQ_EXPORT int zmq_close (void *s);
104 external
105 "C inline use <zmq.h>"
106 alias
107 "return zmq_close ((void *)$a_s);"
108 end
109
110 zmq_sleep (a_seconds: INTEGER_32)
111 -- ZMQ_EXPORT void zmq_sleep (int seconds_);
112 external
113 "C inline use <zmq_utils.h>"
114 alias
115 "zmq_sleep ((int)$a_seconds);"
116 end
117
118 zmq_msg_init_data (a_msg: POINTER; a_data: POINTER; a_size: NATURAL_32; a_ffn: POINTER; a_hint: POINTER): INTEGER_32
119 -- ZMQ_EXPORT int zmq_msg_init_data (zmq_msg_t *msg, void *data, size_t size, zmq_free_fn *ffn, void *hint);
120
121 external
122 "C inline use <zmq.h>"
123 alias
124 "return zmq_msg_init_data ((zmq_msg_t *)$a_msg, (void *)$a_data, (size_t)$a_size, (zmq_free_fn *)$a_ffn, (void *)$a_hint);"
125 end
126
127 zmq_term (a_context: POINTER): INTEGER_32
128 -- ZMQ_EXPORT int zmq_term (void *context);
129 external
130 "C inline use <zmq.h>"
131 alias
132 "return zmq_term ((void *)$a_context);"
133 end
134
135 zmq_connect (a_s: POINTER; an_addr: POINTER): INTEGER_32
136 -- ZMQ_EXPORT int zmq_connect (void *s, const char *addr);
137 external
138 "C inline use <zmq.h>"
139 alias
140 "return zmq_connect ((void *)$a_s, (const char *)$an_addr);"
141 end
142
143 zmq_msg_data (a_msg: POINTER): POINTER
144 -- ZMQ_EXPORT void *zmq_msg_data (zmq_msg_t *msg);
145 external
146 "C inline use <zmq.h>"
147 alias
148 "return zmq_msg_data ((zmq_msg_t *)$a_msg);"
149 end
150
151 zmq_bind (a_s: POINTER; an_addr: POINTER): INTEGER_32
152 -- ZMQ_EXPORT int zmq_bind (void *s, const char *addr);
153 external
154 "C inline use <zmq.h>"
155 alias
156 "return zmq_bind ((void *)$a_s, (const char *)$an_addr);"
157 end
158
159 zmq_recv (a_s: POINTER; a_msg: POINTER; a_msg_length: INTEGER; a_flags: INTEGER_32): INTEGER_32
160 -- ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
161 external
162 "C inline use <zmq.h>"
163 alias
164 "return zmq_recv ((void *)$a_s, (void *) $a_msg, (size_t) $a_msg_length, (int)$a_flags);"
165 end
166
167 zmq_recvmsg (a_s: POINTER; a_msg: POINTER; a_flags: INTEGER_32): INTEGER_32
168 -- ZMQ_EXPORT int zmq_recvmsg (void *s, zmq_msg_t *msg, int flags);
169 external
170 "C inline use <zmq.h>"
171 alias
172 "return zmq_recvmsg ((void *)$a_s,(zmq_msg_t *)$a_msg, (int)$a_flags);"
173 end
174
175 zmq_stopwatch_start: POINTER
176 -- ZMQ_EXPORT void *zmq_stopwatch_start ();
177 external
178 "C inline use <zmq_utils.h>"
179 alias
180 "return zmq_stopwatch_start ();"
181 end
182
183 zmq_poll (an_items: POINTER; a_nitems: INTEGER_32; a_timeout: INTEGER_32): INTEGER_32
184 -- ZMQ_EXPORT int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout);
185 external
186 "C inline use <zmq.h>"
187 alias
188 "return zmq_poll ((zmq_pollitem_t *)$an_items, (int)$a_nitems, (long)$a_timeout);"
189 end
190
191 zmq_msg_move (a_dest: POINTER; a_src: POINTER): INTEGER_32
192 -- ZMQ_EXPORT int zmq_msg_move (zmq_msg_t *dest, zmq_msg_t *src);
193 external
194 "C inline use <zmq.h>"
195 alias
196 "return zmq_msg_move ((zmq_msg_t *)$a_dest,(zmq_msg_t *)$a_src);"
197 end
198
199 zmq_msg_init (a_msg: POINTER): INTEGER_32
200 -- ZMQ_EXPORT int zmq_msg_init (zmq_msg_t *msg);
201 external
202 "C inline use <zmq.h>"
203 alias
204 "return zmq_msg_init ((zmq_msg_t *)$a_msg);"
205 end
206
207 end -- class ZMQ_API

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23