| Class | ZMQ::Error |
| In: |
rbzmq.c
|
| Parent: | RuntimeError |
call-seq:
socket.close() -> nil
Destroys the 0MQ socket. Any outstanding messages physically received from the network but not yet received by the application with ZMQ::Socket#recv() shall be discarded. The behaviour for discarding messages sent by the application with ZMQ::Socket#send() but not yet physically transferred to the network depends on the value of the ZMQ::LINGER socket option for the socket.