sam-github/luasocket — Issue #5: service names are not supported
Author: sam-github
Created: 2011-10-20 20:30:18+00:00
State: open

service names ("www", "echo", "smtp", etc...) are not supported by luasocket

Support would mean:

1: a socket.services that binds to the services APIs

Analogous to socket.dns.

At a minimum, this would include bindings for getservbyname(), getservbyport(), and an iterator over the services database (setservent(), getservent(), and endservent()).

2: allow tcp and udp ports to be strings, as well as numbers

Examples:

socket.connect("www.google.com", "www")
socket.bind("*", "echo")