News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

TNL::ConnectionParameters struct Reference

TNL::ConnectionParameters Struct Reference

#include <tnlNetConnection.h>


Detailed Description

All data associated with the negotiation of the connection.


Public Member Functions

 ConnectionParameters ()

Data Fields

bool mIsArranged
 True if this is an arranged connection.

bool mUsingCrypto
 Set to true if this connection is using crypto (public key and symmetric).

bool mPuzzleRetried
 True if a puzzle solution was already rejected by the server once.

Nonce mNonce
 Unique nonce generated for this connection to send to the server.

Nonce mServerNonce
 Unique nonce generated by the server for the connection.

U32 mPuzzleDifficulty
 Difficulty of the client puzzle solved by this client.

U32 mPuzzleSolution
 Solution to the client puzzle the server sends to the client.

U32 mClientIdentity
 The client identity as computed by the remote host.

RefPtr< AsymmetricKeymPublicKey
 The public key of the remote host.

RefPtr< AsymmetricKeymPrivateKey
 The private key for this connection. May be generated on the connection attempt.

RefPtr< CertificatemCertificate
 The certificate of the remote host.

ByteBufferPtr mSharedSecret
 The shared secret key.

bool mRequestKeyExchange
 The initiator of the connection wants a secure key exchange.

bool mRequestCertificate
 The client is requesting a certificate.

U8 mSymmetricKey [SymmetricCipher::KeySize]
 The symmetric key for the connection, generated by the client.

U8 mInitVector [SymmetricCipher::KeySize]
 The init vector, generated by the server.

Vector< AddressmPossibleAddresses
 List of possible addresses for the remote host in an arranged connection.

bool mIsInitiator
 True if this host initiated the arranged connection.

bool mIsLocal
 True if this is a connectLocal connection.

ByteBufferPtr mArrangedSecret
 The shared secret as arranged by the connection intermediary.

bool mDebugObjectSizes
 This connection's initiator requested debugging size information during packet writes.


Constructor & Destructor Documentation

TNL::ConnectionParameters::ConnectionParameters  )  [inline]
 


Field Documentation

bool TNL::ConnectionParameters::mIsArranged
 

True if this is an arranged connection.

bool TNL::ConnectionParameters::mUsingCrypto
 

Set to true if this connection is using crypto (public key and symmetric).

bool TNL::ConnectionParameters::mPuzzleRetried
 

True if a puzzle solution was already rejected by the server once.

Nonce TNL::ConnectionParameters::mNonce
 

Unique nonce generated for this connection to send to the server.

Nonce TNL::ConnectionParameters::mServerNonce
 

Unique nonce generated by the server for the connection.

U32 TNL::ConnectionParameters::mPuzzleDifficulty
 

Difficulty of the client puzzle solved by this client.

U32 TNL::ConnectionParameters::mPuzzleSolution
 

Solution to the client puzzle the server sends to the client.

U32 TNL::ConnectionParameters::mClientIdentity
 

The client identity as computed by the remote host.

RefPtr<AsymmetricKey> TNL::ConnectionParameters::mPublicKey
 

The public key of the remote host.

RefPtr<AsymmetricKey> TNL::ConnectionParameters::mPrivateKey
 

The private key for this connection. May be generated on the connection attempt.

RefPtr<Certificate> TNL::ConnectionParameters::mCertificate
 

The certificate of the remote host.

ByteBufferPtr TNL::ConnectionParameters::mSharedSecret
 

The shared secret key.

bool TNL::ConnectionParameters::mRequestKeyExchange
 

The initiator of the connection wants a secure key exchange.

bool TNL::ConnectionParameters::mRequestCertificate
 

The client is requesting a certificate.

U8 TNL::ConnectionParameters::mSymmetricKey[SymmetricCipher::KeySize]
 

The symmetric key for the connection, generated by the client.

U8 TNL::ConnectionParameters::mInitVector[SymmetricCipher::KeySize]
 

The init vector, generated by the server.

Vector<Address> TNL::ConnectionParameters::mPossibleAddresses
 

List of possible addresses for the remote host in an arranged connection.

bool TNL::ConnectionParameters::mIsInitiator
 

True if this host initiated the arranged connection.

bool TNL::ConnectionParameters::mIsLocal
 

True if this is a connectLocal connection.

ByteBufferPtr TNL::ConnectionParameters::mArrangedSecret
 

The shared secret as arranged by the connection intermediary.

bool TNL::ConnectionParameters::mDebugObjectSizes
 

This connection's initiator requested debugging size information during packet writes.