-rw-r--r-- | include/opkele/association.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opkele/association.h b/include/opkele/association.h index 5eb1cc3..ef0df42 100644 --- a/include/opkele/association.h +++ b/include/opkele/association.h | |||
@@ -34,56 +34,56 @@ namespace opkele { | |||
34 | /** | 34 | /** |
35 | * the secret | 35 | * the secret |
36 | */ | 36 | */ |
37 | secret_t _secret; | 37 | secret_t _secret; |
38 | /** | 38 | /** |
39 | * expiration time | 39 | * expiration time |
40 | */ | 40 | */ |
41 | time_t _expires; | 41 | time_t _expires; |
42 | /** | 42 | /** |
43 | * statelessness of the assoc_handle | 43 | * statelessness of the assoc_handle |
44 | */ | 44 | */ |
45 | bool _stateless; | 45 | bool _stateless; |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * @param __server the server name | 48 | * @param __server the server name |
49 | * @param __handle association handle | 49 | * @param __handle association handle |
50 | * @param __assoc_type association type | 50 | * @param __assoc_type association type |
51 | * @param __secret the secret | 51 | * @param __secret the secret |
52 | * @param __expires expiration time | 52 | * @param __expires expiration time |
53 | * @param __stateless statelessness of the assoc_handle | 53 | * @param __stateless statelessness of the assoc_handle |
54 | */ | 54 | */ |
55 | association(const string& __server, const string& __handle, | 55 | association(const string& __server, const string& __handle, |
56 | const string& __assoc_type, const secret_t& __secret, | 56 | const string& __assoc_type, const secret_t& __secret, |
57 | time_t __expires, bool __stateless) | 57 | time_t __expires, bool __stateless) |
58 | : _server(__server), _handle(__handle), _assoc_type(__assoc_type), | 58 | : _server(__server), _handle(__handle), _assoc_type(__assoc_type), |
59 | _secret(__secret), _expires(__expires), _stateless(__stateless) { } | 59 | _secret(__secret), _expires(__expires), _stateless(__stateless) { } |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * @overload association_t::server() | 62 | * @overload association_t::server() |
63 | */ | 63 | */ |
64 | virtual string server() const { return _server; } | 64 | virtual string server() const { return _server; } |
65 | /** | 65 | /** |
66 | * @overload association_t::handle() | 66 | * @overload association_t::handle() |
67 | */ | 67 | */ |
68 | virtual string handle() const { return _handle; } | 68 | virtual string handle() const { return _handle; } |
69 | /** | 69 | /** |
70 | * @overload association_t::assoc_type() | 70 | * @overload association_t::assoc_type() |
71 | */ | 71 | */ |
72 | virtual string assoc_type() const { return _assoc_type; } | 72 | virtual string assoc_type() const { return _assoc_type; } |
73 | /** | 73 | /** |
74 | * @overload association_t::secret() | 74 | * @overload association_t::secret() |
75 | */ | 75 | */ |
76 | virtual secret_t secret() const { return _secret; } | 76 | virtual secret_t secret() const { return _secret; } |
77 | /** | 77 | /** |
78 | * @overload association_t::expires_in() | 78 | * @overload association_t::expires_in() |
79 | */ | 79 | */ |
80 | virtual int expires_in() const { return _expires-time(0); } | 80 | virtual int expires_in() const { return _expires-time(0); } |
81 | /** | 81 | /** |
82 | * @overload associationn_t::stateless() | 82 | * @overload association_t::stateless() |
83 | */ | 83 | */ |
84 | virtual bool stateless() const { return _stateless; } | 84 | virtual bool stateless() const { return _stateless; } |
85 | }; | 85 | }; |
86 | 86 | ||
87 | } | 87 | } |
88 | 88 | ||
89 | #endif /* __OPKELE_ASSOCIATION_H */ | 89 | #endif /* __OPKELE_ASSOCIATION_H */ |