ZeroMQ
(require net/zmq) | package: zeromq |
This package provides a binding for the ZeroMQ library.
This documentation does not describe meaning of API calls; it only describes their Racket calling conventions. For details on API semantics, refer to the documentation at the ZeroMQ site.
zmq_msg_init_data is not supported, because Racket pointers may be moved by the garbage collector before the ZeroMQ library is done with them.
value
value
value
value
procedure
(zmq-version) →
exact-nonnegative-integer? exact-nonnegative-integer? exact-nonnegative-integer?
procedure
(poll-item? x) → boolean?
x : any/c
procedure
(make-poll-item socket fd events revents) → poll-item?
socket : socket? fd : exact-nonnegative-integer? events : poll-status? revents : poll-status?
procedure
(poll-item-revents pi) → poll-status?
pi : poll-item?
procedure
io_threads : exact-nonnegative-integer?
procedure
(context-close! context) → void
context : context?
procedure
(call-with-context procedure [ #:io-threads io-threads]) → void procedure : (procedure-arity-includes/c 1) io-threads : exact-nonnegative-integer? = 1
procedure
(msg-init-size! msg size) → void
msg : msg? size : exact-nonnegative-integer?
procedure
(msg-close! msg) → void
msg : msg?
procedure
(msg-data-pointer msg) → cpointer?
msg : msg?
procedure
(msg-size msg) → exact-nonnegative-integer?
msg : msg?
procedure
(make-empty-msg) → msg?
procedure
(make-msg-with-data bytes) → msg?
bytes : bytes?
procedure
(make-msg-with-size exact-nonnegative-integer) → msg?
exact-nonnegative-integer : exact-nonnegative-integer?
procedure
ctxt : context? type : socket-type?
procedure
(socket-close! socket) → void
socket : socket?
procedure
(call-with-socket context socket-type procedure) → void context : context? socket-type : socket-type? procedure : (procedure-arity-includes/c 1)
procedure
(socket-option socket option-name)
→
(or/c boolean? exact-integer? exact-nonnegative-integer? bytes?) socket : socket? option-name : option-name?
procedure
(set-socket-option! socket option-name option-value) → void socket : socket? option-name : option-name?
option-value :
(or/c exact-nonnegative-integer? exact-integer? boolean? bytes?)
procedure
(socket-bind! socket endpoint) → void
socket : socket? endpoint : string?
procedure
(socket-connect! socket endpoint) → void
socket : socket? endpoint : string?
procedure
(socket-send-msg! msg socket flags) → exact-integer?
msg : msg? socket : socket? flags : send/recv-flags?
procedure
(socket-send! socket bytes) → void
socket : socket? bytes : bytes?
procedure
(socket-recv-msg! msg socket flags) → void
msg : msg? socket : socket? flags : send/recv-flags?
procedure
(socket-recv! socket) → bytes?
socket : socket?
procedure
items : (vectorof poll-item?) timeout : exact-integer?