Packet Struct Reference

Container for data passed through network. More...

#include <Packet.hh>

Inheritance diagram for Packet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Packet (int token=0, int client_id=-1)

Public Attributes

unsigned token
 Type of packet carried. Rules specific.
int client_id
 Source or destination client.
unsigned data_size
 Packet size, this header is included.

Friends

std::ostream & operator<< (std::ostream &os, const Packet &pkt)

Detailed Description

Container for data passed through network.

Author:
victor
Date:
28/12/2005

Member Data Documentation

Source or destination client.

  • server -> client: targeted client, or -1 if all.
  • client -> server: source client.

Referenced by STeam::canDoEffort(), SMatch::nextTurn(), SBall::setOwner(), and CBall::setOwner().


The documentation for this struct was generated from the following file:
Generated on Mon Apr 5 21:17:38 2010 for Stechec/TBT by  doxygen 1.6.3