GNE::ProtocolViolation Class Reference
[Mid-Level API]

An error that occurs during the connection process if the remote machine sends incorrect or corrupted packets to us. More...

#include <Errors.h>

Inheritance diagram for GNE::ProtocolViolation:

Inheritance graph
[legend]
Collaboration diagram for GNE::ProtocolViolation:

Collaboration graph
[legend]
List of all members.

Public Types

 OtherViolation = 0
 InvalidCRP
 InvalidCAP
 InvalidUnreliableInfo
enum  ViolationType { OtherViolation = 0, InvalidCRP, InvalidCAP, InvalidUnreliableInfo }

Public Member Functions

 ProtocolViolation (ViolationType T=OtherViolation)
ViolationType getViolationType () const
void setViolationType (ViolationType T)
virtual std::string toString () const
 Returns a string description of this error.

Detailed Description

An error that occurs during the connection process if the remote machine sends incorrect or corrupted packets to us.

This might be possible if they were using a pre-alpha version of GNE, or if the connection came from a non-GNE program.


Member Function Documentation

std::string GNE::ProtocolViolation::toString (  )  const [virtual]

Returns a string description of this error.

When possible, the string is "programmer-friendly," so you will probably want to only use this to write a debug message or out to a log, and tell the user more about the error.

Reimplemented from GNE::Error.


The documentation for this class was generated from the following files:
Generated on Tue Sep 5 23:47:48 2006 for GNE by  doxygen 1.4.7