common.h (109695) | common.h (111816) |
---|---|
1/*- 2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/lib/libfetch/common.h 109695 2003-01-22 17:53:58Z des $ | 28 * $FreeBSD: head/lib/libfetch/common.h 111816 2003-03-03 12:35:03Z des $ |
29 */ 30 31#ifndef _COMMON_H_INCLUDED 32#define _COMMON_H_INCLUDED 33 34#define FTP_DEFAULT_PORT 21 35#define HTTP_DEFAULT_PORT 80 36#define FTP_DEFAULT_PROXY_PORT 21 --- 34 unchanged lines hidden (view full) --- 71/* for _fetch_writev */ 72struct iovec; 73 74void _fetch_seterr(struct fetcherr *, int); 75void _fetch_syserr(void); 76void _fetch_info(const char *, ...); 77int _fetch_default_port(const char *); 78int _fetch_default_proxy_port(const char *); | 29 */ 30 31#ifndef _COMMON_H_INCLUDED 32#define _COMMON_H_INCLUDED 33 34#define FTP_DEFAULT_PORT 21 35#define HTTP_DEFAULT_PORT 80 36#define FTP_DEFAULT_PROXY_PORT 21 --- 34 unchanged lines hidden (view full) --- 71/* for _fetch_writev */ 72struct iovec; 73 74void _fetch_seterr(struct fetcherr *, int); 75void _fetch_syserr(void); 76void _fetch_info(const char *, ...); 77int _fetch_default_port(const char *); 78int _fetch_default_proxy_port(const char *); |
79int _fetch_bind(int, int, const char *); |
|
79conn_t *_fetch_connect(const char *, int, int, int); 80conn_t *_fetch_reopen(int); 81conn_t *_fetch_ref(conn_t *); 82int _fetch_ssl(conn_t *, int); 83ssize_t _fetch_read(conn_t *, char *, size_t); 84int _fetch_getln(conn_t *); 85ssize_t _fetch_write(conn_t *, const char *, size_t); 86ssize_t _fetch_writev(conn_t *, struct iovec *, int); --- 37 unchanged lines hidden --- | 80conn_t *_fetch_connect(const char *, int, int, int); 81conn_t *_fetch_reopen(int); 82conn_t *_fetch_ref(conn_t *); 83int _fetch_ssl(conn_t *, int); 84ssize_t _fetch_read(conn_t *, char *, size_t); 85int _fetch_getln(conn_t *); 86ssize_t _fetch_write(conn_t *, const char *, size_t); 87ssize_t _fetch_writev(conn_t *, struct iovec *, int); --- 37 unchanged lines hidden --- |