diff options
author | des <des@FreeBSD.org> | 2002-06-11 11:27:28 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-06-11 11:27:28 +0000 |
commit | 5064d0b266233c22e85f5845aaf1aa68ebee7d88 (patch) | |
tree | c30b6b79c2759e3145ef6c2364abfc4c383dfb65 /lib/libfetch/common.h | |
parent | f85d0f00609e74ecc0af9af261884345400f1483 (diff) | |
download | FreeBSD-src-5064d0b266233c22e85f5845aaf1aa68ebee7d88.zip FreeBSD-src-5064d0b266233c22e85f5845aaf1aa68ebee7d88.tar.gz |
Add a reference count to struct fetchconn so we don't prematurely close and
free a cached FTP connection.
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index d279e4d..42f68a8 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -58,6 +58,7 @@ struct fetchconn { X509 *ssl_cert; /* server certificate */ SSL_METHOD *ssl_meth; /* SSL method */ #endif + int ref; /* reference count */ }; /* Structure used for error message lists */ @@ -74,6 +75,7 @@ int _fetch_default_port(const char *); int _fetch_default_proxy_port(const char *); conn_t *_fetch_connect(const char *, int, int, int); conn_t *_fetch_reopen(int); +conn_t *_fetch_ref(conn_t *); int _fetch_ssl(conn_t *, int); ssize_t _fetch_read(conn_t *, char *, size_t); int _fetch_getln(conn_t *); |