zeromq/jzmq — Issue #104: Unregister all occurences of socket from poller
Author: cipriancraciun
Created: 2012-01-31 14:27:09+00:00
State: open

If a socket is registered multiple times (maybe with different event masks), after calling `unregister` it should remove all occurrences of that particular socket.

It is debatable if someone should be able to register the same socket twice. But either way the interface should be consistent. As such there are the following options:
a) if a socket should be registered only once then the `register` method should issue an error if a socket is seen twice;
b) otherwise the `unregister` method should accept an poll index and remove that particular one;

Taking into account how the poller is implemented I assume that option b would be the most appropriate one.