diff options
author | Gary Houston <ghouston@arglist.com> | 2001-04-22 16:05:21 +0000 |
---|---|---|
committer | Gary Houston <ghouston@arglist.com> | 2001-04-22 16:05:21 +0000 |
commit | 66c73b76544337c70d3b8f14748d937c2524c52d (patch) | |
tree | 825d12e18bad6733e3c2486d865916127ab474f2 /libguile/socket.h | |
parent | 2a0ef8b74aabc5535d17a58935bf6c18f7ae4abf (diff) | |
download | guile-66c73b76544337c70d3b8f14748d937c2524c52d.tar.gz |
* net_db.c: remove bogus "close" declaration.
(inet_aton declaration, scm_inet_aton, scm_inet_ntoa,
scm_inet_netof, scm_lnaof, scm_inet_makeaddr, INADDR_ANY etc.):
moved to socket.c.
* net_db.h: declarations moved too.
* socket.c (scm_htonl, scm_ntohl): use uint32_t instead of unsigned
long.
(ipv6_net_to_num, ipv6_num_to_net): new static procedures.
(VALIDATE_INET6): new macro.
(scm_inet_pton, scm_inet_ntop): new procedures, implementing
inet-pton and inet-ntop.
(scm_fill_sockaddr): use VALIDATE_INET6 and ipv6_num_to_net.
(scm_addr_vector): use ipv6_net_to_num.
Diffstat (limited to 'libguile/socket.h')
-rw-r--r-- | libguile/socket.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libguile/socket.h b/libguile/socket.h index d2b93d60e..f88b9229e 100644 --- a/libguile/socket.h +++ b/libguile/socket.h @@ -1,8 +1,8 @@ /* classes: h_files */ -#ifndef SOCKETH -#define SOCKETH -/* Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. +#ifndef SCM_SOCKETH +#define SCM_SOCKETH +/* Copyright (C) 1995, 1996, 1997, 2000, 2001 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,6 +52,14 @@ extern SCM scm_htons (SCM in); extern SCM scm_ntohs (SCM in); extern SCM scm_htonl (SCM in); extern SCM scm_ntohl (SCM in); +extern SCM scm_gethost (SCM name); +extern SCM scm_inet_aton (SCM address); +extern SCM scm_inet_ntoa (SCM inetid); +extern SCM scm_inet_netof (SCM address); +extern SCM scm_lnaof (SCM address); +extern SCM scm_inet_makeaddr (SCM net, SCM lna); +extern SCM scm_inet_pton (SCM family, SCM address); +extern SCM scm_inet_ntop (SCM family, SCM address); extern SCM scm_socket (SCM family, SCM style, SCM proto); extern SCM scm_socketpair (SCM family, SCM style, SCM proto); extern SCM scm_getsockopt (SCM sfd, SCM level, SCM optname); @@ -69,7 +77,7 @@ extern SCM scm_recvfrom (SCM sockfd, SCM buff_or_size, SCM flags, SCM offset, SC extern SCM scm_sendto (SCM sockfd, SCM message, SCM fam, SCM address, SCM args_and_flags); extern void scm_init_socket (void); -#endif /* SOCKETH */ +#endif /* SCM_SOCKETH */ /* Local Variables: |