Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::DiscoveryAdvertisement Class Reference

Make your own subclass of this advertisement. More...

#include <Discovery.h>

List of all members.

Public Member Functions

virtual void deserialize (BinaryInput &b)
virtual void serialize (BinaryOutput &b) const
virtual ~DiscoveryAdvertisement ()

Public Attributes

NetAddress address
RealTime lastUpdateTime


Detailed Description

Make your own subclass of this advertisement.

Add fields (e.g. numPlayers, currentScore) to increase the amount of information advertised.

Overrides must provide a default constructor.


Constructor & Destructor Documentation

virtual G3D::DiscoveryAdvertisement::~DiscoveryAdvertisement (  )  [inline, virtual]

An empty virtual destructor for virtual methods.


Member Function Documentation

virtual void G3D::DiscoveryAdvertisement::deserialize ( BinaryInput b  )  [virtual]

Overrides must call DiscoveryAdvertisement::deserialize(b) first.

virtual void G3D::DiscoveryAdvertisement::serialize ( BinaryOutput b  )  const [virtual]

Overrides must call DiscoveryAdvertisement::serialize(b) first.


Member Data Documentation

Address to connect to on the server for the actual game.

The IP portion is ignored (the client figures out the IP address from the packet itself) but the port is essential. Note that this port must not be the discovery port.

(Only used on the client) Time since this advertisement was updated.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo