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


G3D::NetListener Class Reference

Runs on the server listening for clients trying to make reliable connections. More...

#include <NetworkDevice.h>

Inherits G3D::ReferenceCountedObject.

List of all members.

Public Member Functions

bool clientWaiting () const
bool ok () const
void ReferenceCountedObject_zeroWeakPointers ()
ReliableConduitRef waitForConnection ()
 ~NetListener ()

Static Public Member Functions

static NetListenerRef create (const uint16 port)

Public Attributes

AtomicInt32 ReferenceCountedObject_refCount
_WeakPtrLinkedListReferenceCountedObject_weakPointer

Friends

class NetworkDevice


Detailed Description

Runs on the server listening for clients trying to make reliable connections.


Constructor & Destructor Documentation

G3D::NetListener::~NetListener (  ) 


Member Function Documentation

bool G3D::NetListener::clientWaiting (  )  const

True if a client is waiting (i.e.

waitForConnection will return immediately).

static NetListenerRef G3D::NetListener::create ( const uint16  port  )  [static]

bool G3D::NetListener::ok (  )  const

void G3D::ReferenceCountedObject::ReferenceCountedObject_zeroWeakPointers (  )  [inline, inherited]

Automatically called immediately before the object is deleted.

This is not called from the destructor because it needs to be invoked before the subclass destructor.

ReliableConduitRef G3D::NetListener::waitForConnection (  ) 

Block until a connection is received.

Returns NULL if something went wrong.


Friends And Related Function Documentation

friend class NetworkDevice [friend]


Member Data Documentation

The long name is to keep this from accidentally conflicting with a subclass's variable name.

Do not use or explicitly manipulate this value--its type may change in the future and is not part of the supported API.

Linked list of all weak pointers that reference this (some may be on the stack!).

Do not use or explicitly manipulate this value.


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