summaryrefslogtreecommitdiff
path: root/src/PeerAddrEntry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PeerAddrEntry.h')
-rw-r--r--src/PeerAddrEntry.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/PeerAddrEntry.h b/src/PeerAddrEntry.h
index 1b643d83..9bcf7e70 100644
--- a/src/PeerAddrEntry.h
+++ b/src/PeerAddrEntry.h
@@ -50,28 +50,20 @@ private:
uint16_t port_;
Timer lastUpdated_;
+
public:
- PeerAddrEntry
- (const std::string& ipaddr, uint16_t port, Timer updated = Timer());
+ PeerAddrEntry(const std::string& ipaddr, uint16_t port,
+ Timer updated = Timer());
PeerAddrEntry(const PeerAddrEntry& c);
~PeerAddrEntry();
PeerAddrEntry& operator=(const PeerAddrEntry& c);
- const std::string& getIPAddress() const
- {
- return ipaddr_;
- }
+ const std::string& getIPAddress() const { return ipaddr_; }
- uint16_t getPort() const
- {
- return port_;
- }
+ uint16_t getPort() const { return port_; }
- const Timer& getLastUpdated() const
- {
- return lastUpdated_;
- }
+ const Timer& getLastUpdated() const { return lastUpdated_; }
void notifyUpdate();