1 #ifndef __DFTPD__TELNETCOMMAND_HPP__
2 #define __DFTPD__TELNETCOMMAND_HPP__
4 #include <boost/shared_ptr.hpp>
5 #include "TelnetPtr.hpp"
10 TelnetCommand( const TelnetWPtr
& parent
);
15 bool ParsingCommand() const { return m_buf
[0] != 0; }
16 bool Parse( unsigned char byte
);
19 // RFC 854 specifies that commands are either 2 or 3 byte sequences.
20 unsigned char m_buf
[3];
26 typedef boost::shared_ptr
<TelnetCommand
> TelnetCommandPtr
;