AgentX++
2.0.5
Main Page
Classes
Files
File List
File Members
include
agentx_pp
agentx_peer.h
Go to the documentation of this file.
1
/*_############################################################################
2
_##
3
_## agentx_peer.h
4
_##
5
_##
6
_## AgentX++ 2
7
_## -------------------------------------
8
_## Copyright (C) 2000-2013 - Frank Fock
9
_##
10
_## Use of this software is subject to the license agreement you received
11
_## with this software and which can be downloaded from
12
_## http://www.agentpp.com
13
_##
14
_## This is licensed software and may not be used in a commercial
15
_## environment, except for evaluation purposes, unless a valid
16
_## license has been purchased.
17
_##
18
_##########################################################################*/
19
20
21
#ifndef _agentx_peer_h_
22
#define _agentx_peer_h_
23
24
#include <sys/types.h>
25
#include <agent_pp/agent++.h>
26
#include <
agentx_pp/agentx_def.h
>
27
28
#ifdef AGENTPP_NAMESPACE
29
namespace
Agentpp {
30
#endif
31
32
33
class
AGENTXPP_DECL
AgentXPeer
{
34
35
public
:
36
AgentXPeer
();
37
AgentXPeer
(
int
, time_t,
int
, u_int);
38
AgentXPeer
(
const
AgentXPeer
&);
39
~
AgentXPeer
();
40
41
int
operator==(
const
AgentXPeer
& other)
const
42
{
return
sd == other.
sd
; }
43
44
int
sd
;
45
int
nSessions
;
46
time_t
connectTime
;
47
int
timeout
;
48
u_int
mibID
;
49
bool
closing
;
50
};
51
52
#ifdef AGENTPP_NAMESPACE
53
}
54
#endif
55
56
57
#endif
Generated by
1.8.2