andrewvc/em-zeromq — Issue #13: setsockopt needs to happen before bind or connect
Author: deepfryed
Created: 2012-02-20 04:01:51+00:00
State: open

If i need to set hwm, i need to do it before bind or connect happens. The Context#bind or Context#connect methods make this impossible at the moment.

http://api.zeromq.org/2-1:zmq-setsockopt

```
int zmq_setsockopt (void *socket, int option_name, const void *option_value, size_t option_len);
```

**Caution:** All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE and ZMQ_LINGER, only take effect for subsequent socket bind/connects.