summaryrefslogtreecommitdiffstats
path: root/fnet
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-07-11 10:54:33 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-07-11 10:54:33 +0000
commit3454ae8734f5440d9b9d8faacf9d76832411b537 (patch)
treebe9318e6e4452cba2d5a51c56a6e989e0109153d /fnet
parentf97130213c9a2546788a5e5a6299cdbbd7fee94e (diff)
Make GetPeerSpec() public
Very useful for getting the remote address of the connection
Diffstat (limited to 'fnet')
-rw-r--r--fnet/src/vespa/fnet/connection.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fnet/src/vespa/fnet/connection.h b/fnet/src/vespa/fnet/connection.h
index 4d66f22ce2b..10cf74e79de 100644
--- a/fnet/src/vespa/fnet/connection.h
+++ b/fnet/src/vespa/fnet/connection.h
@@ -240,10 +240,6 @@ private:
bool writePendingAfterConnect();
- /**
- * @return address spec of socket peer. Only makes sense to call on non-listening sockets.
- */
- vespalib::string GetPeerSpec() const;
public:
FNET_Connection(const FNET_Connection &) = delete;
FNET_Connection &operator=(const FNET_Connection &) = delete;
@@ -309,6 +305,10 @@ public:
return ((_currentID & 0x01) != (chid & 0x01));
}
+ /**
+ * @return address spec of socket peer. Only makes sense to call on non-listening sockets.
+ */
+ vespalib::string GetPeerSpec() const;
/**
* Does this connection have the ability to accept incoming channels ?