]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: add comments to Messenger bind methods
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 26 Nov 2020 08:33:47 +0000 (16:33 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 26 Nov 2020 08:33:47 +0000 (16:33 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/Messenger.h

index 21305b5310090db0388b68af776ebcb8498dbee7..1ba943665926d04cfd5bb09e8243f049fe608173 100644 (file)
@@ -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;