?? client.h
字號:
#ifndef CLIENT_H_
#define CLIENT_H_
#include "directory.h"
#include "tcpfactory.h"
class Client {
public:
Client(const std::string& addr, int port = 21);
~Client();
int user(const std::string& username = "anonymous");
int pass(const std::string& password);
int cwd(const std::string& path);
int cdup();
int quit();
int port(int port);
int pasv();
int type(Tcp::DataType type);
int stor(const std::string& filename);
int retr(const std::string& filename);
int appe(const std::string& filename);
int list(const std::string& path = "");
int pwd(Directory& dir);
int abor();
int syst();
int help(const std::string& command = "");
bool connect(Client* host);
bool transfer(Client* host, const std::string& filename);
private:
int getReply(std::string& reply);
void openDataConnection();
Tcp* pi;
Tcp* data;
TcpFactory dtp;
bool passive;
Tcp::DataType dataType;
};
#endif /*CLIENT_H_*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -