~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to src/connect.h

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
10
10
 
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
30
30
#ifndef CONNECT_H
31
31
#define CONNECT_H
32
32
 
33
 
#include "host.h"
 
33
#include "host.h"               /* for definition of ip_address */
34
34
 
35
35
/* Function declarations */
36
36
 
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 *));
40
 
 
 
37
/* Returned by connect_to_host when host name cannot be resolved.  */
 
38
enum {
 
39
  E_HOST = -100
 
40
};
 
41
int connect_to_host PARAMS ((const char *, int));
 
42
int connect_to_ip PARAMS ((const ip_address *, int, const char *));
 
43
 
 
44
int bind_local PARAMS ((const ip_address *, int *));
 
45
int accept_connection PARAMS ((int));
 
46
 
 
47
enum {
 
48
  ENDPOINT_LOCAL,
 
49
  ENDPOINT_PEER
 
50
};
 
51
int socket_ip_address PARAMS ((int, ip_address *, int));
 
52
 
 
53
int retryable_socket_connect_error PARAMS ((int));
 
54
 
 
55
/* Flags for select_fd's WAIT_FOR argument. */
 
56
enum {
 
57
  WAIT_FOR_READ = 1,
 
58
  WAIT_FOR_WRITE = 2
 
59
};
 
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 *));
47
 
 
48
 
int iread PARAMS ((int, char *, int));
49
 
int iwrite PARAMS ((int, char *, int));
50
 
 
 
62
int socket_has_inet6 PARAMS ((void));
 
63
 
 
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,
 
71
                                    void *));
 
72
void *fd_transport_context PARAMS ((int));
 
73
 
 
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 */