1 #ifndef __DFTPD__SESSION_HPP__
2 #define __DFTPD__SESSION_HPP__
4 #include "SessionPtr.hpp"
5 #include "SessionControllerPtr.hpp"
10 typedef std::vector
<std::string
> Command
;
30 static SessionPtr
Create( int controlSock
, const SessionControllerPtr
& sessionController
, const AuthPtr
& auth
);
36 Session( int controlSock
, const SessionControllerPtr
& sessionController
, const AuthPtr
& auth
);
41 void SendSyntaxError();
42 void SendNotLoggedIn();
44 PassState
AwaitPassword();
47 void HandleMode( const Command
& cmd
);
48 void HandleType( const Command
& cmd
);
49 void HandleStru( const Command
& cmd
);
51 Command
GetCommand() { return ParseCommand( m_control
->GetBuf() ); }
62 SessionControllerWPtr m_sessionController
;