#include <agentx_session.h>
AgentXSessions::AgentXSessions |
( |
| ) |
|
virtual AgentXSessions::~AgentXSessions |
( |
| ) |
|
|
virtual |
void AgentXSessions::clear |
( |
| ) |
|
|
inline |
virtual bool AgentXSessions::get_session |
( |
u_int |
, |
|
|
AgentXSession & |
|
|
) |
| |
|
virtual |
Get the session with a given id.
(SYNCHRONIZED)
- Parameters
-
sessionID | a session id. |
session | contains the session attributes of the requested session if TRUE is returned and is unchanged if FALSE is returned. |
- Returns
- TRUE if such a session could be found, FALSE otherwise.
Get the session with a given id.
(NOT SYNCHRONIZED)
- Parameters
-
- Returns
- a pointer to the requested session or 0 if such an id does not exist.
Return a ListCursor located at the first session.
- Returns
- a ListCursor instance.
Return a list of all sessions associated with a given peer.
NOTE: Befor calling the destructor of the returned list call its clear() method!
(NOT SYNCHRONIZED)
- Parameters
-
- Returns
- a pointer to a List instance.
virtual u_int AgentXSessions::make_new_session |
( |
bool |
, |
|
|
u_char |
, |
|
|
const Oidx & |
, |
|
|
const NS_SNMP OctetStr & |
, |
|
|
const AgentXPeer & |
|
|
) |
| |
|
virtual |
Make a new session.
- Parameters
-
byteOrder | the byte order used for the new session (TRUE==networkByteOrder). |
timeout | the timeout of used by the new session. |
id | an object id. |
descr | an OctetStr instance. |
peer | the AgentX subagent initiating this session. |
- Returns
- the session id of the new session.
Remove a session.
(SYNCHRONIZED)
- Parameters
-
sessionID | the session id of the session to remove. |
- Returns
- the pointer of the session if it could be removed successfully or 0 if not.
virtual void AgentXSessions::remove |
( |
const AgentXPeer & |
| ) |
|
|
virtual |
Remove all sessions associated with a given peer.
(SYNCHRONIZED)
- Parameters
-
Return a list of all sessions associated with a given peer and remove these sessions.
(SYNCHRONIZED)
- Parameters
-
- Returns
- a pointer to a List instance which must be deleted (including the contained sessions) by the receiver.
- Since
- 1.3.2
u_int AgentXSessions::lastSessionID |
|
protected |
The documentation for this class was generated from the following file: