1 #ifndef __DFTPD__SERVER_HPP__
2 #define __DFTPD__SERVER_HPP__
6 #include "ServerPtr.hpp"
7 #include "Listener.hpp"
8 #include "SessionController.hpp"
14 static ServerPtr
Create( const AuthPtr
& auth
);
15 static ServerPtr
Create( const AuthPtr
& auth
, const std::string
& ip
);
20 void IncomingConnection( int sock
);
22 void SetAuth( const AuthPtr
& auth
) { m_auth
= auth
; }
24 const std::list
<std::string
>& GetWelcomeMessage() const { return m_welcome
; }
27 Server( const AuthPtr
& auth
);
28 Server( const AuthPtr
& auth
, const std::string
& ip
);
31 void LoadWelcomeMessage();
35 ListenerPtr m_listener
;
36 SessionControllerPtr m_sessionController
;
39 std::list
<std::string
> m_welcome
;