| Class | ZMQ::Context |
| In: |
rbzmq.c
|
| Parent: | Object |
Initializes a new 0MQ context. The io_threads argument specifies the size of the 0MQ thread pool to handle I/O operations. If your application is using only the inproc transport for you may set this to zero; otherwise, set it to at least one.
Terminates the 0MQ context.
Context termination is performed in the following steps:
For further details regarding socket linger behaviour refer to the ZMQ::LINGER option in ZMQ::Socket#setsockopt().
Creates a new 0MQ socket. The socket_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 connect(), or at least one endpoint must be created for accepting incoming connections with bind().
For a description of the various socket types, see ZMQ::Socket.