Chromium Code Reviews| Index: webrtc/base/asyncudpsocket.cc |
| diff --git a/webrtc/base/asyncudpsocket.cc b/webrtc/base/asyncudpsocket.cc |
| index 3e2ecc4cda487697f6dbcef8c30590a9bec24a2e..28c54dfce54b2b829cc845774d4130977fe813fd 100644 |
| --- a/webrtc/base/asyncudpsocket.cc |
| +++ b/webrtc/base/asyncudpsocket.cc |
| @@ -60,13 +60,19 @@ SocketAddress AsyncUDPSocket::GetRemoteAddress() const { |
| int AsyncUDPSocket::Send(const void *pv, size_t cb, |
| const rtc::PacketOptions& options) { |
| - return socket_->Send(pv, cb); |
| + int ret = socket_->Send(pv, cb); |
|
pbos-webrtc
2015/10/12 20:48:00
This has the downside of you technically being abl
pthatcher1
2015/10/13 05:31:13
What do you mean "receive a response"? Do you mea
stefan-webrtc
2015/10/13 08:09:20
I'll take the timestamp before Send() as that is w
pbos-webrtc
2015/10/15 09:51:49
Yeah, you'd need the signal to be sent before send
stefan-webrtc
2015/10/15 10:09:32
Yes, agree.
|
| + rtc::SentPacket sent_packet(options.packet_id, rtc::Time()); |
| + SignalSentPacket(this, sent_packet); |
| + return ret; |
| } |
| int AsyncUDPSocket::SendTo(const void *pv, size_t cb, |
| const SocketAddress& addr, |
| const rtc::PacketOptions& options) { |
| - return socket_->SendTo(pv, cb, addr); |
| + int ret = socket_->SendTo(pv, cb, addr); |
| + rtc::SentPacket sent_packet(options.packet_id, rtc::Time()); |
| + SignalSentPacket(this, sent_packet); |
| + return ret; |
| } |
| int AsyncUDPSocket::Close() { |