summaryrefslogtreecommitdiff
path: root/methods/ftp.h
diff options
context:
space:
mode:
Diffstat (limited to 'methods/ftp.h')
-rw-r--r--methods/ftp.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/methods/ftp.h b/methods/ftp.h
index 6a12475a0..67d00d9f1 100644
--- a/methods/ftp.h
+++ b/methods/ftp.h
@@ -10,19 +10,20 @@
#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 <string>
#include <sys/socket.h>
#include <sys/types.h>
#include <time.h>
-#include <string>
class FTPConn
{
char Buffer[1024*10];
unsigned long Len;
- int ServerFd;
+ std::unique_ptr<MethodFd> ServerFd;
int DataFd;
int DataListenFd;
URI ServerName;
@@ -55,7 +56,7 @@ class FTPConn
bool WriteMsg(unsigned int &Ret,std::string &Text,const char *Fmt,...);
// Connection control
- bool Open(pkgAcqMethod *Owner);
+ bool Open(aptMethod *Owner);
void Close();
bool GoPasv();
bool ExtGoPasv();