Struct zmq_rs::Context [] [src]

pub struct Context { /* fields omitted */ }

Methods

impl Context
[src]

[src]

Create new 0MQ context

Binding of void *zmq_ctx_new ();

The function creates a new ØMQ context.

Thread safety

A ØMQ context is thread safe and may be shared among as many application threads as necessary, without any additional locking required on the part of the caller.

[src]

Shutdown a 0MQ context

Binding of int zmq_ctx_shutdown (void *context);

The function will shutdown the ØMQ context context. Context shutdown will cause any blocking operations currently in progress on sockets open within context to return immediately with an error code of ETERM. With the exception of Socket::Close(), any further operations on sockets open within context will fail with an error code of ETERM.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Create 0MQ socket

Binding of void *zmq_socket (void *context, int type);

The type argument specifies the socket type, which determines the semantics of communication over the socket. The newly created socket is initially unbound, and not associated with any endpoints. In order to establish a message flow a socket must first be connected to at least one endpoint with Scoket::Connect, or at least one endpoint must be created for accepting incoming connections with Socket::Bind().

Trait Implementations

impl Send for Context
[src]

impl Sync for Context
[src]

impl Drop for Context
[src]

[src]

Executes the destructor for this type. Read more