AsyncUDPServerSocket passes socket in callback
authorDave Watson <davejwatson@fb.com>
Tue, 7 Apr 2015 16:53:44 +0000 (09:53 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Fri, 10 Apr 2015 03:34:19 +0000 (20:34 -0700)
commitf697ba4934d867fb1a59a80650b3a8082659e976
tree12259f7f1add16a8699de446b73ad4d8054ee8c0
parent163a570ea0a11a82f1d81288f0314c9f4544cf0a
AsyncUDPServerSocket passes socket in callback

Summary: AsyncUDPServerSocket doesn't make it easy to write to the same socket you read from.  Add the socket as a callback param, similar to AsyncServerSocket

Test Plan:
fbconfig -r folly; fbmake dbg

Will fixup any other spots contbuild finds

Reviewed By: hans@fb.com

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

FB internal diff: D1948936

Signature: t1:1948936:1427841651:20d13d73c06d31c75056624f051a6fd35b9701fb
folly/io/async/AsyncUDPServerSocket.h
folly/io/async/test/AsyncUDPSocketTest.cpp
folly/wangle/acceptor/Acceptor.h
folly/wangle/bootstrap/ServerBootstrap-inl.h