atsz / iperf

Automatically exported from code.google.com/p/iperf
0 stars 0 forks source link

allow user to pass in their own file descriptor #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Explaination of new feature

allow a library user to pass in a fd rather than having the stream functions 
allocate it.

Original issue reported on code.google.com by jdugan.e...@gmail.com on 10 Dec 2009 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by jdugan.e...@gmail.com on 10 Dec 2009 at 6:52

GoogleCodeExporter commented 9 years ago
If this is reasonably easy to do, let's do it for the 3.0 release.  If not we 
can defer to 3.1

Original comment by jdu...@es.net on 10 Sep 2012 at 4:26

GoogleCodeExporter commented 9 years ago
On the client side, test->ctrl_sck comes from netdial(), and on the server side 
test->listener comes from netannounce().  Both of those cases could be made use 
a passed-in fd, and default to the current behavior if the fd is -1 - looks 
like just a couple minutes of coding.  Of course both client and server go on 
to allocate more fds for the test stream(s), I assume we are not talking about 
those.

Original comment by jef.posk...@gmail.com on 10 Dec 2012 at 5:29

GoogleCodeExporter commented 9 years ago
Implemented this for the client-side control socket.  The server-side case is a 
little trickier, not done yet.

Original comment by jef.posk...@gmail.com on 13 Dec 2012 at 5:40

GoogleCodeExporter commented 9 years ago

Original comment by bltier...@es.net on 25 Feb 2013 at 11:30