[Pharo-users] [pharo 2.0] IP address to ByteArray

Bernardo Ezequiel Contreras vonbecmann at gmail.com
Tue Jul 31 13:21:22 EDT 2012


Hi all,
    Is there a better way to convert an IP address to a ByteArray?
    I'm doing this

     ('127.0.23.11' subStrings: '.') collect: [:each | each asInteger ] as:
ByteArray

thanks

-- 
Bernardo E.C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20120731/febdaf53/attachment.html>


More information about the Pharo-users mailing list