[zeromq-dev] Binding to TCP port 0

Martin Lucina martin at lucina.net
Thu Jan 26 05:05:06 CET 2012


On Wed, 25 Jan 2012 19:28:00 -0600
Pieter Hintjens <ph at imatix.com> wrote:

> No-one is asking for an API that lets you bind 10 times to port zero
> and get all ten results. 100% of use cases here are for binding once
> to port zero and getting exactly one result back.

Indeed. In fact, the OP was specifically asking for a use case where he
could bind an unspecified number of times to port zero, and get zero
results back. :-)

> It is bad design process to exaggerate the user's requirements into
> absurd extremity and then state there is no simple solution. It's far
> wiser to understand the actual problem people are trying to solve, and
> solve that simply and minimally.

Given that an API will stick around for a long time, it is good API
design process to extrapolate current and possible future use cases
and arrive at the simplest possible API covering all these use cases.

-- 
Martin Lucina <martin at lucina.net>



More information about the zeromq-dev mailing list