Add connection event callback to AsyncServerSocket
authorMohammad Husain <mhusain@fb.com>
Fri, 16 Oct 2015 04:13:25 +0000 (21:13 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 16 Oct 2015 05:20:28 +0000 (22:20 -0700)
commit6d3bf6468bcceef79ab89ac2c7a6df19832ef403
tree7738fb934d1f37b38530fbf7af342a0dcf1fe09a
parentdd631eb72879ca97d6285148f1cf735d20d02ebe
Add connection event callback to AsyncServerSocket

Summary: Adding a callback to AsyncServerSocket to get notified of client connection events. This can be used for example to record stats about these events.

Reviewed By: @afrind

Differential Revision: D2544776

fb-gh-sync-id: 20d22cfc939c5b937abec2b600c10b7228923ff3
folly/io/async/AsyncServerSocket.cpp
folly/io/async/AsyncServerSocket.h
folly/io/async/test/AsyncSocketTest2.cpp