From: Dave Watson Date: Tue, 31 Mar 2015 16:53:51 +0000 (-0700) Subject: Default accept function in Acceptor X-Git-Tag: v0.33.0~15 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=43989f9df882e5f2fb8c33800c29c596f2e61ce6;p=folly.git Default accept function in Acceptor 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 --- diff --git a/folly/wangle/acceptor/Acceptor.h b/folly/wangle/acceptor/Acceptor.h index c82f97a6..9ad992fc 100644 --- a/folly/wangle/acceptor/Acceptor.h +++ b/folly/wangle/acceptor/Acceptor.h @@ -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 {}