emeric636 / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Enhancement: Dynamic Port #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if it was possible to tell Mongoose to bind to a port 
dynamically (can be done with ports = 0) and then get the actual port which 
was bound back out from the server.

Alternately, being able to pass a listening socket created by the user to 
Mongoose for accept().

Original issue reported on code.google.com by caleb.ep...@gmail.com on 5 Mar 2009 at 8:23

GoogleCodeExporter commented 9 years ago
Implementing that would require new API call, and I am slow about doing that.

There is a crude way to achieve that functionality by setting "ports" option, 
passing 
random port numbers until some succeed.

Said that, I am closing this issue, not implementing the feature.

Original comment by valenok on 25 Mar 2009 at 8:50