Default accept function in Acceptor
authorDave Watson <davejwatson@fb.com>
Tue, 31 Mar 2015 16:53:51 +0000 (09:53 -0700)
committerafrind <afrind@fb.com>
Thu, 2 Apr 2015 19:00:51 +0000 (12:00 -0700)
Summary: Since Acceptor can be used for TCP or UDP, make an empty default TCP accept function so subclasses don't have to.

Test Plan:
built D1942242, no build errors

contbuild

Reviewed By: yfeldblum@fb.com

Subscribers: doug, fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D1948940

Signature: t1:1948940:1427498977:26b7bb23e3367ff6695dad86ebf0e60637815a7b

folly/wangle/acceptor/Acceptor.h

index c82f97a6755f09f0933ee7180a54a055918724dc..9ad992fc03995909fb12ab024ff34fdccb13301c 100644 (file)
@@ -229,7 +229,7 @@ class Acceptor :
       AsyncSocket::UniquePtr sock,
       const folly::SocketAddress* address,
       const std::string& nextProtocolName,
-      const TransportInfo& tinfo) = 0;
+      const TransportInfo& tinfo) {}
 
   void onListenStarted() noexcept {}
   void onListenStopped() noexcept {}