TDME2 1.9.121
List of all members
UDPServerGroup Class Reference

UDP server group class. More...

#include <tdme/network/udpserver/UDPServerGroup.h>

Inheritance diagram for UDPServerGroup:
Inheritance graph
Collaboration diagram for UDPServerGroup:
Collaboration graph

Additional Inherited Members

- Public Types inherited from ServerGroup< UDPServer, UDPServerClient, UDPServerGroup >
typedef std::set< std::string > ClientKeySet
 
- Public Member Functions inherited from ServerGroup< UDPServer, UDPServerClient, UDPServerGroup >
 ServerGroup (const uint32_t groupId)
 
const string & getKey ()
 group identification key More...
 
const bool setKey (const string &key)
 sets the group identification key More...
 
ClientKeySet getClientKeySet ()
 get a copy of current group client keys More...
 
virtual const bool addClient (UDPServerClient *client)
 Adds a client to this group. More...
 
virtual const bool removeClient (UDPServerClient *client)
 Removes a client from this group. More...
 
virtual void shutdown ()=0
 Shuts down this server group. More...
 
- Public Member Functions inherited from Reference
 Reference ()
 Public constructor. More...
 
virtual ~Reference ()
 destructor More...
 
void acquireReference ()
 acquires a reference, incrementing the counter More...
 
void releaseReference ()
 releases a reference, thus decrementing the counter and delete it if reference counter is zero More...
 
virtual void onDelete ()
 Callback method to be overridden, will be called if object will be deleted. More...
 
- Protected Types inherited from ServerGroup< UDPServer, UDPServerClient, UDPServerGroup >
typedef std::map< const std::string, UDPServerClient * > ClientKeyMap
 
- Protected Member Functions inherited from ServerGroup< UDPServer, UDPServerClient, UDPServerGroup >
virtual void onCreate ()=0
 
virtual void onClose ()=0
 
virtual void close ()
 Shuts down this group. More...
 
- Protected Member Functions inherited from ServerGroupBase
virtual void onInit ()=0
 
virtual void onClose ()=0
 
virtual void onCustomEvent (const string &type)=0
 
- Protected Attributes inherited from ServerGroup< UDPServer, UDPServerClient, UDPServerGroup >
UDPServerserver
 
uint32_t groupId
 
std::string key
 
ClientKeySet clientKeySet
 
ReadWriteLock clientKeyListsReadWriteLock
 

Detailed Description

UDP server group class.

Author
Andreas Drewke

Definition at line 17 of file UDPServerGroup.h.


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