#include <StrMod/TelnetChunkBuilder.h>
Inheritance diagram for strmod::strmod::TelnetChunkBuilder:

Public Methods | |
| virtual int | AreYouA (const lcore::ClassIdent &cid) const |
| Asks if a class is of a particular type, or publicly derived from that type. | |
| virtual void | addDataBlock (size_t regionbegin, size_t regionend)=0 |
| Add a data block to the stream. | |
| virtual void | addCharCommand (TelnetChars::Commands command)=0 |
| Add a single character telnet command to the stream. | |
| virtual void | addNegotiationCommand (TelnetChars::OptionNegotiations negtype, lcore::U1Byte opt_type)=0 |
| Add a negotiation command to the stream. | |
| virtual void | addSuboption (lcore::U1Byte opt_type, size_t regionbegin, size_t regionend, StrChunkPtrT< BufferChunk > &cooked)=0 |
| Add a suboption to the data stream. | |
Static Public Attributes | |
| const STR_ClassIdent | identifier |
| Globally unique identifier for this class. | |
Protected Methods | |
| virtual const lcore::ClassIdent * | i_GetIdent () const |
| Returns the class identifier for the class the object actually is. | |
This is an abstract interface used for building up telnet protocol elements block by block. The TelnetParser uses it, and the TelnetChunker implements it to build up TelnetChunker::TelnetChunk objects.
Definition at line 49 of file TelnetChunkBuilder.h.
|
||||||||||||
|
Add a data block to the stream.
|
|
||||||||||||
|
Add a negotiation command to the stream. Negotiations are where two sides of a telnet conversation agree to turn an option off or on. Sometimes turning an option on merely means being willing to communicate more about it through suboption negotiation. |
|
||||||||||||||||||||
|
Add a suboption to the data stream. This function will cause a suboption of the specified type to be added to the stream.
|
|
|
Asks if a class is of a particular type, or publicly derived from that type. Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.
Reimplemented from strmod::lcore::Protocol. Definition at line 92 of file TelnetChunkBuilder.h. |
|
|
Returns the class identifier for the class the object actually is. Should always be overridden in any class that has a static identifier member. Reimplemented from strmod::lcore::Protocol. Definition at line 87 of file TelnetChunkBuilder.h. |
|
|
Globally unique identifier for this class. Every class that might need to be identified should have a public static const identifier object in it. Reimplemented from strmod::lcore::Protocol. |
1.3-rc1