]> gitweb.factorcode.org Git - factor.git/commit
io.sockets: add word addrinfo-error to signal host lookup failures
authorBjörn Lindqvist <bjourne@gmail.com>
Sun, 16 Mar 2014 11:56:48 +0000 (12:56 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 20 Apr 2014 16:29:31 +0000 (09:29 -0700)
commite1206d5ef1fda81825447c67686c6bdebc1a1697
tree3bb1da90eb397a06ca664746864701e15a285cea
parent516ffcc31100f88624733121258b969dcc983bc3
io.sockets: add word addrinfo-error to signal host lookup failures

If the getaddrinfo call fails, and you want to handle that failure in
a structured way, then you need a designated error type to know what
went wrong.
basis/io/sockets/sockets-docs.factor
basis/io/sockets/sockets-tests.factor
basis/io/sockets/sockets.factor
basis/io/sockets/unix/unix.factor
basis/io/sockets/windows/windows.factor