| Commit message (Expand) | Author | Age | Files | Lines |
* | Add `getaddrinfo' and related procedures....* libguile/net_db.c (sym_getaddrinfo_error, sym_ai_passive,
sym_ai_canonname, sym_ai_numerichost, sym_ai_numericserv,
sym_ai_v4mapped, sym_ai_all, sym_ai_addrconfig, sym_eai_badflags,
sym_eai_noname, sym_eai_again, sym_eai_fail, sym_eai_family,
sym_eai_socktype, sym_eai_service, sym_eai_memory, sym_eai_system,
sym_eai_overflow, sym_eai_nodata, sym_eai_addrfamily,
sym_eai_inprogress, sym_eai_canceled, sym_eai_notcanceled,
sym_eai_alldone, sym_eai_intr, sym_eai_idn_encode): New variables.
(scm_from_addrinfo, scm_getaddrinfo, scm_gai_strerror): New functions.
* libguile/net_db.h (scm_getaddrinfo, scm_gai_strerror): New functions.
* module/ice-9/networking.scm (addrinfo:flags, addrinfo:fam,
addrinfo:socktype, addrinfo:protocol, addrinfo:addr,
addrinfo:canonname): New procedures.
* test-suite/tests/net-db.test: New file.
* test-suite/Makefile.am (SCM_TESTS): Add `tests/net-db.test'.
* doc/ref/posix.texi (Network Databases)[getaddrinfo]: New subsection.
[The Host Database]: Suggest using `getaddrinfo'.
| Ludovic Courtès | 2010-02-14 | 1 | -1/+3 |
* | Change Guile license to LGPLv3+...(Not quite finished, the following will be done tomorrow.
module/srfi/*.scm
module/rnrs/*.scm
module/scripts/*.scm
testsuite/*.scm
guile-readline/*
)
| Neil Jerram | 2009-06-17 | 1 | -6/+7 |
* | Add `SCM_INTERNAL' macro, use it. | Ludovic Courtès | 2008-05-31 | 1 | -2/+2 |
* | merge from 1.8 branch | Kevin Ryde | 2006-04-17 | 1 | -1/+1 |
* | The FSF has a new address. | Marius Vollmer | 2005-05-23 | 1 | -1/+1 |
* | Changed license terms to the plain LGPL thru-out. | Marius Vollmer | 2003-04-05 | 1 | -35/+11 |
* | Prefixed each each exported symbol with SCM_API. | Marius Vollmer | 2001-11-02 | 1 | -9/+9 |
* | * Renamed header macros to the SCM_<filename>_H format. | Dirk Herrmann | 2001-08-31 | 1 | -10/+9 |
* | * net_db.h (scm_gethost): Added prototype. | Marius Vollmer | 2001-05-02 | 1 | -0/+1 |
* | * 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.
| Gary Houston | 2001-04-22 | 1 | -10/+4 |
* | Updated copyrights | Mikael Djurfeldt | 2000-06-12 | 1 | -1/+1 |
* | * *.[hc]: add Emacs magic at the end of file, to ensure GNU... indentation style.
| Michael Livshin | 2000-03-19 | 1 | -0/+6 |
* | * list.c: Moved append docs to append! Thanks Dirk Hermann. Also,...added append docs from R4RS.
* strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
Thanks Dirk Hermann!
* chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
* *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout.
Drop use of SCM_P for function prototypes... assume an ANSI C
compiler. Thanks Dirk Hermann!
| Greg J. Badros | 2000-03-02 | 1 | -14/+14 |
* | * Lots of files: New address for FSF. | Jim Blandy | 1997-05-26 | 1 | -3/+3 |
* | * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb. | Jim Blandy | 1996-12-23 | 1 | -1/+1 |
* | * filesys.c (scm_input_waiting_p): use select in preference to...FIONREAD, since the latter doesn't detect EOF.
Throw error if neither select nor FIONREAD available.
* socket.c (scm_connect): take a port, not a fd object.
(scm_fill_sockaddr): throw an error if fam is not recognised.
(scm_bind): use scm_fill_sockaddr.
(scm_listen): take a port, not a fd object.
(scm_accept): take and return a port. return CDR in the car if
address can't be got
(scm_sock_fd_to_port): new procedure.
(scm_socket): use scm_sock_fd_to_port.
(scm_addr_vector): throw error if unrecognised address type.
take an extra argument with the calling procedure name.
(scm_getsockname): take a port. return #f if address can't be got.
(scm_getpeername): take a port. return #f if address can't be got.
(scm_recvfrom): take a port. return #f for address component if can't
be got.
(scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
* socket.h (SCM_P): update bind prototype.
* socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
include "feature.h".
(scm_socket): return a port, not a file descriptor object.
include "fports.h" and <unistd.h>
(scm_bind): take a port, not a file descriptor object.
take an extra argument for address args.
* net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
INADDR_NONE, INADDR_LOOPBACK.
* init.c: include net_db.h and not fdsocket.h.
(scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
* Makefile.am: corresponding changes.
* socket.h: renamed from fdsocket.h, fix names.
* net_db.h: renamed from socket.h, fix names.
* socket.c: renamed from fdsocket.c.
remove _sys from procedure names.
(scm_init_socket): rename from scm_init_fdsocket. include socket.x.
add "socket" to features list.
* net_db.c: renamed from socket.c.
remove _sys from procedure names.
(scm_init_net_db): rename from scm_init_socket. include net_db.x.
add "net-db" to features list.
include "net_db.h". don't include <sys/socket.h> or
<sys/un.h>.
| Gary Houston | 1996-12-21 | 1 | -0/+69 |