VideoTools
|
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. | |
ServerPeer * | peer () |
Returns the pointer. | |
ServerPeer * | old () |
Returns the pointer value before it was reset(). More... | |
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.
GNet::ServerPeer * GNet::ServerPeerHandle::old | ( | ) |
Returns the pointer value before it was reset().
Used in debugging.
Definition at line 317 of file gserver.cpp.