00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _agentx_peer_h_
00024 #define _agentx_peer_h_
00025
00026 #include <sys/types.h>
00027 #include <agent_pp/agent++.h>
00028 #include <agentx_pp/agentx_def.h>
00029
00030 #ifdef AGENTPP_NAMESPACE
00031 namespace Agentpp {
00032 #endif
00033
00034
00035 class AGENTXPP_DECL AgentXPeer {
00036
00037 public:
00038 AgentXPeer();
00039 AgentXPeer(int, time_t, int, u_int);
00040 AgentXPeer(const AgentXPeer&);
00041 ~AgentXPeer();
00042
00043 int operator==(const AgentXPeer& other) const
00044 { return sd == other.sd; }
00045
00046 int sd;
00047 int nSessions;
00048 time_t connectTime;
00049 int timeout;
00050 u_int mibID;
00051 boolean closing;
00052 };
00053
00054 #ifdef AGENTPP_NAMESPACE
00055 }
00056 #endif
00057
00058
00059 #endif