diff options
author | Julian Andres Klode <jak@debian.org> | 2017-06-28 10:55:08 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-06-28 15:52:38 +0200 |
commit | 5666084ecfe140aaa3f89388de557c2f875b4244 (patch) | |
tree | 49bae823b0473e72d58db10033de2329a71d4c80 /methods/ftp.h | |
parent | b4afd84a59578965120f175b410ea325d60bcb58 (diff) |
methods: connect: Switch from int fds to new MethodFd
Use std::unique_ptr<MethodFd> everywhere we used an
integer-based file descriptor before. This allows us
to implement stuff like TLS support easily.
Gbp-Dch: ignore
Diffstat (limited to 'methods/ftp.h')
-rw-r--r-- | methods/ftp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/methods/ftp.h b/methods/ftp.h index 3a482fa42..5b23dba41 100644 --- a/methods/ftp.h +++ b/methods/ftp.h @@ -10,8 +10,9 @@ #ifndef APT_FTP_H #define APT_FTP_H -#include <apt-pkg/strutl.h> #include "aptmethod.h" +#include "connect.h" +#include <apt-pkg/strutl.h> #include <sys/socket.h> #include <sys/types.h> @@ -22,7 +23,7 @@ class FTPConn { char Buffer[1024*10]; unsigned long Len; - int ServerFd; + std::unique_ptr<MethodFd> ServerFd; int DataFd; int DataListenFd; URI ServerName; |