Commit ca2e0d75 authored by Dongyi Ye's avatar Dongyi Ye Committed by Facebook GitHub Bot

Add setTimestamping in AsyncUDPServerSocket

Summary: Enabled the owner of AsyncUDPServerSocket to call setTimestamping for the underlying AsyncUDPSocket. So in the `onDataAvailable` callback we could have ts set in `OnDataAvailableParams`

Reviewed By: yfeldblum

Differential Revision: D28661584

fbshipit-source-id: d060cfdd8a4e105ada8a2c3b0fd13ddafb6f0d7c
parent 3b4f9dfc
......@@ -246,6 +246,8 @@ class AsyncUDPServerSocket : private AsyncUDPSocket::ReadCallback,
applyEventCallback();
}
bool setTimestamping(int val) { return socket_->setTimestamping(val); }
private:
// AsyncUDPSocket::ReadCallback
void getReadBuffer(void** buf, size_t* len) noexcept override {
......
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