NetSimpleManager Class Reference
[NetworkingSingle inited classes]

A very simple class, derived from NetBasicManager. More...

#include <netmanager.h>

Inheritance diagram for NetSimpleManager:

Inheritance graph
[legend]
Collaboration diagram for NetSimpleManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLSPEC NetSimpleManager (const char *name, BasicObject *p)
DECLSPEC NetSimpleManager (TiXmlElement *el, BasicObject *p)
virtual const char * getClassName ()

Static Public Member Functions

static NetSimpleManagergetThe ()

Protected Member Functions

virtual DECLSPEC NetSocketcreateSocket (TCPsocket socket)

Detailed Description

A very simple class, derived from NetBasicManager.

This is a very simple network manager, containing the most important things. The NetSocket-class, that is compatible to this managing class is NetStandardSocket.

Do not initialize this class, if another class, derived from NetBasicManager has already been inited!


Member Function Documentation

virtual const char* NetSimpleManager::getClassName (  )  [inline, virtual]

This function should be overriden in every sub-class of BasicObject!

Returns:
the name of the class.

Reimplemented from BasicObject.

static NetSimpleManager* NetSimpleManager::getThe (  )  [inline, static]

Returns:
a pointer to the NetSimpleManager-variable, or NULL if not initialized. (There is only one variable allowed in an application that is a derived class from NetBasicManager)
Every netrinjo-class that can only exist once at a time, has this static function.
See also:
Single inited classes, NetBasicManager::getThe(), NetPeerManager::getThe()

Reimplemented from NetBasicManager.

NetSocket * NetSimpleManager::createSocket ( TCPsocket  socket  )  [protected, virtual]

Creates a class, derived from NetSocket, that is compatible to the managing class.

Parameters:
socket the SDL-TCP socket which is used by the new NetSocket
Returns:
a pointer to the created class, converted to NetSocket*

Implements NetBasicManager.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:31 2007 for netrinjo by  doxygen 1.5.1