Commit 43989f9d authored by Dave Watson's avatar Dave Watson Committed by afrind

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
parent cb2fe8d0
...@@ -229,7 +229,7 @@ class Acceptor : ...@@ -229,7 +229,7 @@ class Acceptor :
AsyncSocket::UniquePtr sock, AsyncSocket::UniquePtr sock,
const folly::SocketAddress* address, const folly::SocketAddress* address,
const std::string& nextProtocolName, const std::string& nextProtocolName,
const TransportInfo& tinfo) = 0; const TransportInfo& tinfo) {}
void onListenStarted() noexcept {} void onListenStarted() noexcept {}
void onListenStopped() noexcept {} void onListenStopped() noexcept {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment