From: Yingxin Cheng Date: Thu, 26 Nov 2020 08:33:47 +0000 (+0800) Subject: crimson/net: add comments to Messenger bind methods X-Git-Tag: v16.1.0~416^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2b81287e642e9adcf8f5a9137da73d0d2a6d4ff;p=ceph.git crimson/net: add comments to Messenger bind methods Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/net/Messenger.h b/src/crimson/net/Messenger.h index 21305b531009..1ba943665926 100644 --- a/src/crimson/net/Messenger.h +++ b/src/crimson/net/Messenger.h @@ -66,9 +66,13 @@ public: } /// bind to the given address + /// throws std::system_error with address_in_use if the addr is already bound + // TODO: use errorated future virtual seastar::future<> bind(const entity_addrvec_t& addr) = 0; /// try to bind to the first unused port of given address + /// throws std::system_error with address_in_use if the range is unavailable + // TODO: use errorated future virtual seastar::future<> try_bind(const entity_addrvec_t& addr, uint32_t min_port, uint32_t max_port) = 0;