ufairiya / mongoose

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

mg_open_listening_port enhancement request? #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am just throwing this idea around, perhaps its just me but someone else
may find this useful:

What about adding support in the mg_open_listening_port() routine to allow
for hostname instead of just IP addresses/port?  Reason one may want to do
this is that by using a hostname, one could avoid having to either update
the code (if the address is hardcoded) or change a config file should the
IP address of the host changes; of course this assumes any associated hosts
files or DNS entries are correct.

On the other hand, if one wants this feature, it could be implemented as a
"local helper" function and not part of Mongoose.

Original issue reported on code.google.com by PKuo...@gmail.com on 7 Jun 2009 at 11:46

GoogleCodeExporter commented 9 years ago
This is possible, but will complicate a code with little Return Of Investment.
I would leave this to application.

Original comment by valenok on 16 Jun 2009 at 9:17