On Feb 1, 2012, at 2:11 PM, Justin Karneges wrote:

> On Wednesday, February 01, 2012 12:00:22 PM Justin Karneges wrote:
>> If I create a socket with bind, but nobody has connected yet, then I do not
>> receive POLLOUT events.  How can I determine when the socket becomes
>> writable in an event-driven fashion?
> 
> Sorry, I apologize for the stupid question.  The answer is the same as my 
> earlier one blocking send.  The socket becomes writable once a peer has 
> connected.
> 
> I must admit I still find it confusing that a socket with bind does not 
> immediately have a background write queue.  Was this an intentional design 
> decision, or just something that hasn't been implemented yet?

It's intentional. The mailing list archives have the answer... I know sustrik 
has answered this a few times. Search for the subject "bind/connect assimetry" 
(yes, use that misspelling).

I'll add this to the FAQ.

cr

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to