|
Public Member Functions |
| THList< GUID, CNetCom >::iterator | RemoveNode (THList< GUID, CNetCom >::iterator itNode) |
| | Disconnects and removes the specified network session.
|
| BOOL | RemoveUpdateNotification (const GUID *pguidNode, const GUID *pguidClass, DWORD dwCmd) |
| | Removes update notifications for the specified class and command.
|
| BOOL | CleanupNotifications () |
| | Removes invalid sessions from the message map.
|
| virtual BOOL | NotifyNetwork (const GUID *pguidClass, DWORD dwCmd) |
| | Sends the specified notification message to network.
|
| BOOL | AddUpdateNotification (const GUID *pguidNode, const GUID *pguidClass, DWORD dwCmd) |
| | Includes the specified session to receive described update messages.
|
| void | BootNode (CNetCom *pNode) |
| | Disconnects the specified session.
|
| void | BootNode (const GUID *pNode) |
| | Disconnects the specified node.
|
| CNetCom * | CreateNewSession () |
| | Creates a new unconnected network session.
|
| BOOL | InitSession (CNetCom *pNc) |
| | Initializes the specified network session object.
|
| BOOL | Cleanup () |
| | Removes disconnected sessions from the list.
|
|
void | Destroy () |
| | Closes all sessions and the network server.
|
| CNetCom * | FindSession (const GUID *guidId) |
| | Returns the session object for a given session ID.
|
| CNetCom * | AddSession (const GUID *guidId) |
| | Adds a session with the specified ID to the network.
|
| CNetCom * | AddSession (const GUID *guidId, CNetCom *pNc) |
| | Adds a session with the specified ID to the network.
|
|
| CNetMgr () |
| | Default contstructor.
|
|
virtual | ~CNetMgr () |
| | Destructor.
|
| long | OnNetMsg (WPARAM wParam, LPARAM lParam, const GUID *pGuid) |
| | Relays network messages to appropriate dispatch objects.
|
| virtual CNetCom * | CreateSessionObject ()=0 |
| | Create a new CNetCom derived session object.
|
| virtual BOOL | OnAuthenticate (CNetCom *pNc) |
| | Over-ride to supply custom authentication.
|
| virtual CNetCom * | GetNode (const GUID *pGuid) |
| | Returns a pointer to the specified session.
|
| virtual CNetCom * | FindByRxName (LPCTSTR pName) |
| | Finds the session by its remote session name.
|
| virtual CNetCom * | FindByTxName (LPCTSTR pName) |
| | Finds the session by its local session name.
|
|
DWORD | GetNumConnections () |
| | Returns the number of connected sessions.
|
| void | SetGlobalDescription (LPCTSTR pDescription) |
| | Sets the description of this network object.
|
| LPCTSTR | GetGlobalDescription () |
| | Returns our network description string.
|
|
THList< GUID, CNetCom > * | GetSessionList () |
| | Returns a pointer to the network session list.
|
|
| operator CTlLock * () |
| | Returns a pointer to the thread lock.
|
Static Public Member Functions |
| static long | NetMsg (LPVOID pData, WPARAM wParam, LPARAM lParam, const GUID *pGuid) |
Provides the network server and manages multiple connected clients. Routes communications and handles message callbacks.