From 43989f9df882e5f2fb8c33800c29c596f2e61ce6 Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Tue, 31 Mar 2015 09:53:51 -0700 Subject: [PATCH] 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 --- folly/wangle/acceptor/Acceptor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {} -- 2.34.1