ConnectionProtocol Class Reference#include <dnet.h>
Inheritance diagram for ConnectionProtocol:
Detailed Description
The base class for Torque's networking protocol.
This implements a sliding window connected message stream over an unreliable transport (UDP). It provides a simple notify protocol to allow subclasses to be aware of what packets were sent succesfully and which failed.
Basically, a window size of 32 is provided, and each packet contains in the header a bitmask, acknowledging the receipt (or failure to receive) of the last 32 packets.
- See also:
- NetConnection, NetProtocol
Constructor & Destructor Documentation
| ConnectionProtocol::ConnectionProtocol |
( |
|
) |
|
|
Member Function Documentation
| void ConnectionProtocol::buildSendPacketHeader |
( |
BitStream * |
bstream, |
|
|
S32 |
packetType = 0 |
|
) |
|
|
| void ConnectionProtocol::sendPingPacket |
( |
|
) |
|
|
| void ConnectionProtocol::sendAckPacket |
( |
|
) |
|
|
| void ConnectionProtocol::setConnectionEstablished |
( |
|
) |
[inline] |
|
| bool ConnectionProtocol::windowFull |
( |
|
) |
|
|
| bool ConnectionProtocol::connectionEstablished |
( |
|
) |
|
|
| void ConnectionProtocol::setConnectSequence |
( |
U32 |
connectSeq |
) |
[inline] |
|
| virtual bool ConnectionProtocol::readDemoStartBlock |
( |
BitStream * |
stream |
) |
[virtual] |
|
| virtual void ConnectionProtocol::processRawPacket |
( |
BitStream * |
bstream |
) |
[virtual] |
|
| virtual void ConnectionProtocol::keepAlive |
( |
|
) |
[pure virtual] |
|
| virtual void ConnectionProtocol::handleConnectionEstablished |
( |
|
) |
[pure virtual] |
|
| virtual void ConnectionProtocol::handleNotify |
( |
bool |
recvd |
) |
[pure virtual] |
|
| virtual void ConnectionProtocol::handlePacket |
( |
BitStream * |
bstream |
) |
[pure virtual] |
|
Field Documentation
|