1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#include "Drwho_Node.h"
Drwho_Node::Drwho_Node (const char *h_name, Drwho_Node *n)
: key_name1_ (h_name),
key_name2_ (0),
tty_name_ (0),
idle_time_ (0),
active_count_ (0),
inactive_count_ (0),
next_ (n)
{}
Drwho_Node::Drwho_Node (void)
: key_name1_ (0),
key_name2_ (0),
tty_name_ (0),
idle_time_ (0),
active_count_ (0),
inactive_count_ (0),
next_ (0)
{}
const char *
Drwho_Node::get_login_name (void)
{
return this->key_name1_;
}
const char *
Drwho_Node::set_login_name (const char *str)
{
this->key_name1_ = str;
return str;
}
const char *
Drwho_Node::get_real_name (void)
{
return this->key_name2_;
}
const char *
Drwho_Node::set_real_name (const char *str)
{
this->key_name2_ = str;
return str;
}
const char *
Drwho_Node::get_host_name (void)
{
return this->key_name1_;
}
const char *
Drwho_Node::set_host_name (const char *str)
{
this->key_name1_ = str;
return str;
}
int
Drwho_Node::get_active_count (void)
{
return this->active_count_;
}
int
Drwho_Node::get_inactive_count (void)
{
return this->inactive_count_;
}
int
Drwho_Node::set_active_count (int count)
{
this->active_count_ = count;
return count;
}
int
Drwho_Node::set_inactive_count (int count)
{
this->inactive_count_ = count;
return count;
}
int
Drwho_Node::set_idle_time (int idle_time)
{
this->idle_time_ = idle_time;
return idle_time;
}
int
Drwho_Node::get_idle_time (void)
{
return this->idle_time_;
}
|