Working FTP
This commit is contained in:
parent
f351ca46d8
commit
dc8e96634b
2 changed files with 22 additions and 13 deletions
|
@ -1,3 +1,4 @@
|
|||
#include <map>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
|
@ -54,13 +55,14 @@ namespace FTP {
|
|||
|
||||
class User {
|
||||
public:
|
||||
User( Socket::Connection NewConnection = Socket::Connection() );
|
||||
User( Socket::Connection NewConnection = Socket::Connection(), std::map<std::string,std::string> Credentials = std::map<std::string,std::string>() );
|
||||
~User( );
|
||||
int ParseCommand( std::string Command );
|
||||
bool LoggedIn( );
|
||||
std::string NumToMsg( int MsgNum );
|
||||
Socket::Connection Conn;
|
||||
private:
|
||||
std::map<std::string,std::string> AllCredentials;
|
||||
std::string USER;
|
||||
std::string PASS;
|
||||
Mode MODE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue