sb-bsd-sockets: Rearrange how get-host-by-name/address are defined.
authorStas Boukarev <stassats@gmail.com>
Wed, 16 Oct 2013 10:36:34 +0000 (14:36 +0400)
committerStas Boukarev <stassats@gmail.com>
Wed, 16 Oct 2013 10:36:34 +0000 (14:36 +0400)
commit5c2f5c79dbf16bafecf46d2a563895b76a1c7b3d
tree387fcbb7009e55072f54ffa30130027ce55b5407
parent37bf7dd7201a3b8c8db4b07b32934f6c5d3b6fdd
sb-bsd-sockets: Rearrange how get-host-by-name/address are defined.
#+/-sb-bsd-sockets-addrinfo have different definitions of
get-host-by-name and get-host-by-address. Instead of having
(defun get-host-by-name ()
  #+sb-bsd-sockets-addrinfo (call-getaddrinfo-flavour)
  #-sb-bsd-sockets-addrinfo
  (implementaiton-using gethostbyname))

define
#+sb-bsd-sockets-addrinfo
(defun get-host-by-name ()
  (implementaiton-using getaddrinfo))

#-sb-bsd-sockets-addrinfo
(defun get-host-by-name ()
  (implementaiton-using gethostbyname))
contrib/sb-bsd-sockets/name-service.lisp