GizmoDistribution

gzDistDefaultEncoder Class Reference

Default encoder class. More...

#include <gzDistEncoder.h>

Inheritance diagram for gzDistDefaultEncoder:

gzDistEncoderInterface gzDistThreadSafeReference List of all members.

Public Member Functions

 gzDistDefaultEncoder (gzULong key, gzDistEncoderInterface *parent=NULL)
 Constructor.
virtual ~gzDistDefaultEncoder ()
 Destructor.

Protected Member Functions

gzUInt onEncode (const gzUByte *source, gzInt sourceLength, gzArray< gzUByte > &destination)
 Virtual callback reimplemented from gzDistEncoderInterface.
gzUInt onDecode (const gzUByte *source, gzInt sourceLength, gzArray< gzUByte > &destination)
 Virtual callback reimplemented from gzDistEncoderInterface.

Detailed Description

Default encoder class.

If you want a simple data scrambler for network data you can use gzDistDefaultEncoder. It's constructed with a key that must match, otherwise no messages can be received.

Note:
This is NOT a qualified crypto, i.e. it's not impossible to decode for an outsider. If you want a safer crypto you should use the gzDistEncoderInterface to implement a customized encoder using your desired crypto.

Definition at line 123 of file gzDistEncoder.h.


Constructor & Destructor Documentation

gzDistDefaultEncoder::gzDistDefaultEncoder gzULong  key,
gzDistEncoderInterface parent = NULL
 

Constructor.

Parameters:
key A key value that data will be scrambled with.
parent A pointer to a gzDistEncoderInterface that will be executed before this.
See also:
gzDistDefaultCompressor


The documentation for this class was generated from the following file:
Documentation for GizmoDistribution generated at Wed Feb 20 11:59:21 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond