C# Class P2PStateServer.ServiceMessage

Represents a message originating from a peer, state server or client (web server)
Inheritance: HTTPMessage
Afficher le fichier Open project: tenor/p2pStateServer Class Usage Examples

Protected Properties

Свойство Type Description
lockCookie uint?
service StateServer
timeout int?

Méthodes publiques

Méthode Description
Process ( ) : void

When overriden in a derived class, processes the message.

ServiceMessage ( HTTPPartialData HTTPData, StateServer Service ) : System

Initializes a new instance of the ServiceMessage class

Méthodes protégées

Méthode Description
GetKeyValue ( string Text, char Delimiter, string &Key, string &Value ) : void

Parses a string for a Key and a Value

IsValidBase64 ( string Data ) : bool

Verifies the supplied data is in valid Base64 format

Unquote ( string value ) : string

Removes quotes from a string if the string is surrounded by quotes

Validate ( ) : bool

Validates a message

Method Details

GetKeyValue() protected static méthode

Parses a string for a Key and a Value
protected static GetKeyValue ( string Text, char Delimiter, string &Key, string &Value ) : void
Text string The text to parse
Delimiter char Delimiter seperating key and value
Key string Key
Value string Value
Résultat void

IsValidBase64() protected static méthode

Verifies the supplied data is in valid Base64 format
protected static IsValidBase64 ( string Data ) : bool
Data string Data to verify
Résultat bool

Process() public abstract méthode

When overriden in a derived class, processes the message.
public abstract Process ( ) : void
Résultat void

ServiceMessage() public méthode

Initializes a new instance of the ServiceMessage class
public ServiceMessage ( HTTPPartialData HTTPData, StateServer Service ) : System
HTTPData HTTPPartialData The HTTPPartialData class to load this instance from
Service StateServer State server instance
Résultat System

Unquote() protected méthode

Removes quotes from a string if the string is surrounded by quotes
protected Unquote ( string value ) : string
value string Quoted/Unquoted string
Résultat string

Validate() protected méthode

Validates a message
protected Validate ( ) : bool
Résultat bool

Property Details

lockCookie protected_oe property

The message lock cookie value
protected uint? lockCookie
Résultat uint?

service protected_oe property

An instance of the state server
protected StateServer service
Résultat StateServer

timeout protected_oe property

The message time-out value
protected int? timeout
Résultat int?