Store username in Session.
[dftpd.git] / Telnet.hpp
blob8dd835e6a9f62d632338d7841fc2e9bbd8af4fb6
1 #ifndef __DFTPD__TELNET_HPP__
2 #define __DFTPD__TELNET_HPP__
4 #include <string>
5 #include <boost/shared_ptr.hpp>
7 class Telnet
9 public:
10 Telnet( int sock );
11 ~Telnet();
13 bool Read();
14 void Write( const std::string& msg );
16 std::string GetBuf();
18 private:
19 // Owned by Session, not by Telnet
20 int m_sock;
22 std::string m_readBuf;
25 typedef boost::shared_ptr<Telnet> TelnetPtr;
27 #endif