Commit e4d37c6c authored by Woo Xie's avatar Woo Xie Committed by Facebook Github Bot

expose the underlying AsyncUDPSocket in AsyncUDPServerSocket

Summary: users may need AsyncUDPSocket to send back datagram to clients.

Reviewed By: yfeldblum

Differential Revision: D18764100

fbshipit-source-id: 7ab7cce5711f47db92f43a68b94568729d5746d0
parent 506ab28c
......@@ -148,6 +148,10 @@ class AsyncUDPServerSocket : private AsyncUDPSocket::ReadCallback,
return socket_->getNetworkSocket();
}
const std::shared_ptr<AsyncUDPSocket>& getSocket() const {
return socket_;
}
void close() {
CHECK(socket_) << "Need to bind before closing";
socket_->close();
......
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