NetDelayEvent

Engine/source/sim/netConnection.cpp

Used when simulating lag.

More...

Private Attributes

buffer [Net::MaxPacketDataSize]

Public Functions

process(SimObject * object)

A dummy virtual destructor is required so that subclasses can be deleted properly.

Detailed Description

Used when simulating lag.

We post this SimEvent when we want to send a packet; it delays for a bit, then sends the actual packet.

Private Attributes

U8 buffer [Net::MaxPacketDataSize]
BitStream stream 

Public Functions

NetDelayEvent(BitStream * inStream)

process(SimObject * object)

Reimplemented from: SimEvent