Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

strmod::strmod::TelnetChunker::Suboption Class Reference

A telnet suboption. More...

#include <StrMod/TelnetChunkerData.h>

Inheritance diagram for strmod::strmod::TelnetChunker::Suboption:

Inheritance graph
[legend]
List of all members.

Public Methods

 Suboption (U1Byte type, const StrChunkPtrT< BufferChunk > &cooked, const StrChunkPtr &raw)
 Suboption (U1Byte type, const StrChunkPtrT< BufferChunk > &cooked)
 Construct a telnet suboption request, generating the 'raw' data.

virtual int AreYouA (const lcore::ClassIdent &cid) const
 Asks if a class is of a particular type, or publicly derived from that type.

virtual unsigned int Length () const
 Number of octets this chunk takes up. May be deprecated.

U1Byte getType () const
 Which suboption is this data for?

const StrChunkPtrT< BufferChunk > & getCooked () const
 What's the suboption data with all the escapes processed?

const StrChunkPtrgetRaw () const
 What's the suboption data without any escape processing?


Static Public Attributes

const STR_ClassIdent identifier
 A unique identifier for this class.


Protected Methods

virtual const lcore::ClassIdent * i_GetIdent () const
 See class Protocol.

virtual void acceptVisitor (ChunkVisitor &visitor) throw (ChunkVisitor::halt_visitation)
 Accept a ChunkVisitor, and maybe lead it through your children.


Detailed Description

A telnet suboption.

This should never be seen for a particular option unless we've previously agreed to talk about this option in an OptionNegotiation.

Definition at line 120 of file TelnetChunkerData.h.


Constructor & Destructor Documentation

strmod::strmod::TelnetChunker::Suboption::Suboption U1Byte    type,
const StrChunkPtrT< BufferChunk > &    cooked,
const StrChunkPtr   raw
[inline]
 

Parameters:
type Which suboption is this for?
cooked The suboption data that has had the escape characters processed.
raw The raw suboption data with no escape processing at all.

Definition at line 234 of file TelnetChunkerData.h.

strmod::strmod::TelnetChunker::Suboption::Suboption U1Byte    type,
const StrChunkPtrT< BufferChunk > &    cooked
 

Construct a telnet suboption request, generating the 'raw' data.

The generated raw data is created by replacing any instances of IAC in the cooked data with IAC IAC.

Definition at line 351 of file TelnetChunker.cxx.


Member Function Documentation

int strmod::strmod::TelnetChunker::Suboption::AreYouA const lcore::ClassIdent &    cid const [inline, virtual]
 

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.

Parameters:
cid Usually <class>::identifier for the class you want to ask if the object is an instance of.

Reimplemented from strmod::strmod::TelnetChunker::TelnetData.

Definition at line 243 of file TelnetChunkerData.h.


The documentation for this class was generated from the following files:
Generated on Wed Jan 29 00:32:56 2003 for libNet by doxygen1.3-rc1