inet:ip/1

Martin Bjorklund mbj@REDACTED
Wed Apr 12 23:50:27 CEST 2006


Serge Aleynikov <serge@REDACTED> wrote:
> While playing with the inet:ip/1 function I noticed that it can take an 
> argument containing less than four octets.  What's the meaning of such a 
> strange conversion like inet:ip("1.2.3")?

same as e.g. telnet:

$ telnet 127.0.1 45
Trying 127.0.0.1...

or

$ telnet 127.1 45
Trying 127.0.0.1...



/martin



More information about the erlang-questions mailing list