Working FTP

This commit is contained in:
Erik Zandvliet 2012-08-29 11:20:31 +02:00
parent f351ca46d8
commit dc8e96634b
2 changed files with 22 additions and 13 deletions

View file

@ -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;