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


G3D::DiscoveryClient< AdType > Class Template Reference

Only one DiscoveryClient can be active on a given port at a time on a single computer. More...

#include <Discovery.h>

Inherits G3D::Discovery.

List of all members.

Public Member Functions

void cleanup ()
void doNetwork ()
void init (const DiscoverySettings *_settings)

Public Attributes

Array< IncompatibleServerDescriptionincompatibleServerList
Array< AdType > serverList

Classes

class  BroadcastMessage


Detailed Description

template<class AdType>
class G3D::DiscoveryClient< AdType >

Only one DiscoveryClient can be active on a given port at a time on a single computer.

AdType must be a subclass of DiscoveryAdvertisement.


Member Function Documentation

template<class AdType>
void G3D::DiscoveryClient< AdType >::cleanup (  )  [inline]

Shut down the discovery client.

template<class AdType>
void G3D::DiscoveryClient< AdType >::doNetwork (  )  [inline]

Call this regularly (several times per second) to update the server list.

Not threadsafe-- you must not touch the server list while this is running. This will not block.

template<class AdType>
void G3D::DiscoveryClient< AdType >::init ( const DiscoverySettings _settings  )  [inline, virtual]

Only called from subclasses.

Reimplemented from G3D::Discovery.


Member Data Documentation

List of servers running the same application but a different protocol.

It is useful to show these to users to help them recognize version conflicts between client and server. Do not access on a second thread while in doNetwork.

template<class AdType>
Array<AdType> G3D::DiscoveryClient< AdType >::serverList

List of servers.

Do not access on a second thread while in doNetwork.


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