X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/fcbf843f56bf894f4899d39d494a5046e4a8f597..f15c0f545be3dd4b1da92824b1bf782e3571b4a6:/module/ice-9/networking.scm diff --git a/module/ice-9/networking.scm b/module/ice-9/networking.scm index c0218821f..f9ff39436 100644 --- a/module/ice-9/networking.scm +++ b/module/ice-9/networking.scm @@ -1,11 +1,11 @@ ;;; installed-scm-file -;;;; Copyright (C) 1999, 2005, 2006 Free Software Foundation, Inc. +;;;; Copyright (C) 1999, 2005, 2006, 2010 Free Software Foundation, Inc. ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public ;;;; License as published by the Free Software Foundation; either -;;;; version 2.1 of the License, or (at your option) any later version. +;;;; version 3 of the License, or (at your option) any later version. ;;;; ;;;; This library is distributed in the hope that it will be useful, ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,6 +17,9 @@ ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;;;; +(eval-when (compile) + (set-current-module (resolve-module '(guile)))) + (define (gethostbyaddr addr) (gethost addr)) (define (gethostbyname name) (gethost name)) @@ -82,3 +85,10 @@ (define (sockaddr:port obj) (vector-ref obj 2)) (define (sockaddr:flowinfo obj) (vector-ref obj 3)) (define (sockaddr:scopeid obj) (vector-ref obj 4)) + +(define (addrinfo:flags obj) (vector-ref obj 0)) +(define (addrinfo:fam obj) (vector-ref obj 1)) +(define (addrinfo:socktype obj) (vector-ref obj 2)) +(define (addrinfo:protocol obj) (vector-ref obj 3)) +(define (addrinfo:addr obj) (vector-ref obj 4)) +(define (addrinfo:canonname obj) (vector-ref obj 5))