?? server.h
字號:
#ifndef SERVER_H_
#define SERVER_H_
#include <map>
#include <string>
#include "directory.h"
#include "tcpfactory.h"
class Server {
public:
~Server();
static Server* listen(int port);
static void addUser(const std::string& username, const std::string& password);
void start();
private:
static const std::string FTP_ROOT;
static TcpFactory* listenTcp;
static std::map<std::string, std::string> users;
Server(Tcp* ctrl);
bool checkPermission();
void openDataConnection();
Tcp* pi;
Tcp* data;
TcpFactory dtp;
bool logon;
bool passive;
Tcp::DataType dataType;
Directory dir;
};
#endif /*SERVER_H_*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -