6
6
GNU Wget is free software; you can redistribute it and/or modify
7
7
it under the terms of the GNU General Public License as published by
8
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
9
(at your option) any later version.
11
11
GNU Wget is distributed in the hope that it will be useful,
12
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
33
#include "host.h" /* for definition of ip_address */
35
35
/* Function declarations */
37
int connect_to_one PARAMS ((ip_address *, unsigned short, int));
38
int connect_to_many PARAMS ((struct address_list *, unsigned short, int));
39
void set_connection_host_name PARAMS ((const char *));
37
/* Returned by connect_to_host when host name cannot be resolved. */
41
int connect_to_host PARAMS ((const char *, int));
42
int connect_to_ip PARAMS ((const ip_address *, int, const char *));
44
int bind_local PARAMS ((const ip_address *, int *));
45
int accept_connection PARAMS ((int));
51
int socket_ip_address PARAMS ((int, ip_address *, int));
53
int retryable_socket_connect_error PARAMS ((int));
55
/* Flags for select_fd's WAIT_FOR argument. */
60
int select_fd PARAMS ((int, double, int));
41
61
int test_socket_open PARAMS ((int));
42
int select_fd PARAMS ((int, double, int));
43
uerr_t bindport PARAMS ((unsigned short *, int));
44
uerr_t acceptport PARAMS ((int *));
45
void closeport PARAMS ((int));
46
int conaddr PARAMS ((int, ip_address *));
48
int iread PARAMS ((int, char *, int));
49
int iwrite PARAMS ((int, char *, int));
62
int socket_has_inet6 PARAMS ((void));
64
typedef int (*fd_reader_t) PARAMS ((int, char *, int, void *));
65
typedef int (*fd_writer_t) PARAMS ((int, char *, int, void *));
66
typedef int (*fd_poller_t) PARAMS ((int, double, int, void *));
67
typedef int (*fd_peeker_t) PARAMS ((int, char *, int, void *));
68
typedef void (*fd_closer_t) PARAMS ((int, void *));
69
void fd_register_transport PARAMS ((int, fd_reader_t, fd_writer_t,
70
fd_poller_t, fd_peeker_t, fd_closer_t,
72
void *fd_transport_context PARAMS ((int));
74
int fd_read PARAMS ((int, char *, int, double));
75
int fd_write PARAMS ((int, char *, int, double));
76
int fd_peek PARAMS ((int, char *, int, double));
77
void fd_close PARAMS ((int));
51
78
#endif /* CONNECT_H */