Struct zmq_rs::Socket [] [src]

pub struct Socket { /* fields omitted */ }

Methods

impl Socket
[src]

[src]

[src]

Close 0MQ socket

Binding of int zmq_close (void *s);

It's not mandatory to call this function since socket can be closed automatically on dropping The function will destroy this socket. Any outstanding messages physically received from the network but not yet received by the application with recv() shall be discarded. The behaviour for discarding messages sent by the application with send() but not yet physically transferred to the network depends on the value of the ZMQ_LINGER socket option for the specified socket.

[src]

Accept incoming connections on a socket

Binding of int zmq_bind (void *socket, const char *endpoint);

The function binds the socket to a local endpoint and then accepts incoming connections on that endpoint.

[src]

Create outgoing connection from socket

Binding of int zmq_connect (void *socket, const char *endpoint);

The function connects the socket to an endpoint and then accepts incoming connections on that endpoint.

[src]

Stop accepting connections on a socket

Binding of int zmq_unbind (void *socket, const char *endpoint);

The function will unbind a socket specified by the socket argument from the endpoint specified by the endpoint argument.

[src]

Disconnect a socket

Binding of int zmq_disconnect (void *socket, const char *endpoint);

The function will disconnect socket from the endpoint specified by the endpoint argument. Any outstanding messages physically received from the network but not yet received by the application with recv() will be discarded. The behaviour for discarding messages sent by the application with send() but not yet physically transferred to the network depends on the value of the ZMQ_LINGER socket option for the socket.

[src]

Send a message part on a socket

Binding of int zmq_msg_send (zmq_msg_t *msg, void *socket, int flags);

[src]

Receive a message part from a socket

Binding of int zmq_msg_recv (zmq_msg_t *msg, void *socket, int flags);

[src]

Receive a message part from a socket

Binding of int zmq_msg_recv (zmq_msg_t *msg, void *socket, int flags);

[src]

Send bytes on a socket

Data will be copied into a Message object in order to be sent.

[src]

Send a constant-memory message part on a socket

Binding of ZMQ_EXPORT int zmq_send_const (void *s, const void *buf, size_t len, int flags);

The message buffer is assumed to be constant-memory(static) and will therefore not be copied or deallocated in any way

[src]

Send a UTF-8 string on socket

[src]

Receive bytes from a socket

[src]

Receive bytes into a mutable slice

Caution

Any bytes exceeding the length of buffer will be truncated.

[src]

Receive a UTF-8 string from socket

[src]

Monitor socket events

Binding of int zmq_socket_monitor (void *socket, char *endpoint, int events);

The method lets an application thread track socket events (like connects) on a ZeroMQ socket

[src]

Start built-in 0MQ proxy

Binding of int zmq_proxy (const void *frontend, const void *backend, const void *capture);

The function starts the built-in ØMQ proxy in the current application thread.

[src]

Start built-in 0MQ proxy

Binding of int zmq_proxy (const void *frontend, const void *backend, const void *capture); or int zmq_proxy_steerable (const void *frontend, const void *backend, const void *capture, const void *control);

The function starts the built-in ØMQ proxy in the current application thread. The proxy will send all messages, received on both frontend and backend, to the capture socket. The capture socket should be a ZMQ_PUB, ZMQ_DEALER, ZMQ_PUSH, or ZMQ_PAIR socket. If the control socket is not None, the proxy supports control flow. If PAUSE is received on this socket, the proxy suspends its activities. If RESUME is received, it goes on. If TERMINATE is received, it terminates smoothly. At start, the proxy runs normally as if run_proxy was used.

[src]

Create a poll item from current socket

Safty

There is no lifetime guarantee that poll item does not live out socket

[src]

input/output multiplexing

Binding of int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout);

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Send for Socket
[src]

impl Drop for Socket
[src]

[src]

Executes the destructor for this type. Read more