Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: TNL::ConnectionStringTable Class Reference

# TNL::ConnectionStringTable Class Reference

`#include <tnlConnectionStringTable.h>`

## Detailed Description

ConnectionStringTable is a helper class to EventConnection for reducing duplicated string data sends.

## Public Types

enum | StringTableConstants { EntryCount = 1024, EntryBitSize = 10 }

## Public Member Functions

| ConnectionStringTable (NetConnection *parent)
void | writeStringTableEntry (BitStream *stream, StringTableEntryRef string)
StringTableEntry | readStringTableEntry (BitStream *stream)
void | packetReceived (PacketList *note)
void | packetDropped (PacketList *note)

## Private Member Functions

void | pushBack (Entry *entry)
| Pushes an entry to the back of the LRU list.

## Private Attributes

Entry | mEntryTable [EntryCount]
Entry * | mHashTable [EntryCount]
StringTableEntry | mRemoteStringTable [EntryCount]
Entry | mLRUHead
Entry | mLRUTail
NetConnection * | mParent

## Data Structures

struct | Entry
| An entry in the EventConnection's string table. More...
struct | PacketEntry
struct | PacketList

## Member Enumeration Documentation

enum TNL::ConnectionStringTable::StringTableConstants

Enumerator:

  EntryCount |
  EntryBitSize |

## Constructor & Destructor Documentation

TNL::ConnectionStringTable::ConnectionStringTable | ( | NetConnection * | parent | ) |

## Member Function Documentation

void TNL::ConnectionStringTable::pushBack | ( | Entry * | entry | ) | `[inline, private]`

Pushes an entry to the back of the LRU list.

void TNL::ConnectionStringTable::writeStringTableEntry | ( | BitStream * | stream,
|  | StringTableEntryRef | string |
| ) |  |  |

StringTableEntry TNL::ConnectionStringTable::readStringTableEntry | ( | BitStream * | stream | ) |

void TNL::ConnectionStringTable::packetReceived | ( | PacketList * | note | ) |

void TNL::ConnectionStringTable::packetDropped | ( | PacketList * | note | ) |

## Field Documentation

Entry TNL::ConnectionStringTable::mEntryTable[EntryCount]`[private]`

Entry* TNL::ConnectionStringTable::mHashTable[EntryCount]`[private]`

StringTableEntry TNL::ConnectionStringTable::mRemoteStringTable[EntryCount]`[private]`

Entry TNL::ConnectionStringTable::mLRUHead`[private]`

Entry TNL::ConnectionStringTable::mLRUTail`[private]`

NetConnection* TNL::ConnectionStringTable::mParent`[private]`