VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::ServerPeerHandle Class Reference

A structure used in the implementation of GNet::Server. More...

#include <gserver.h>

Public Member Functions

 ServerPeerHandle ()
 Default constructor.
 
void set (ServerPeer *p)
 Sets the pointer.
 
void reset ()
 Resets the pointer.
 
ServerPeerpeer ()
 Returns the pointer.
 
ServerPeerold ()
 Returns the pointer value before it was reset(). More...
 

Detailed Description

A structure used in the implementation of GNet::Server.

The server holds a list of handles which refer to all its peer objects. When a peer object deletes itself it resets the handle, without changing the server's list. The server uses its list to delete all peer objects from within its destructor. The server does garbage collection occasionally, deleting handles which have been reset.

Definition at line 52 of file gserver.h.

Member Function Documentation

GNet::ServerPeer * GNet::ServerPeerHandle::old ( )

Returns the pointer value before it was reset().

Used in debugging.

Definition at line 317 of file gserver.cpp.


The documentation for this class was generated from the following files: