Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1199)

Unified Diff: mojo/services/network/public/cpp/udp_socket_wrapper.cc

Issue 863023004: Mojo UDP socket: support connected mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/services/network/public/cpp/udp_socket_wrapper.cc
diff --git a/mojo/services/network/public/cpp/udp_socket_wrapper.cc b/mojo/services/network/public/cpp/udp_socket_wrapper.cc
index f82b330762c320125238b4540177e0597e164aa0..8d8b7ea7d0cfdd0c6780397a8efdaa3634ad2d5f 100644
--- a/mojo/services/network/public/cpp/udp_socket_wrapper.cc
+++ b/mojo/services/network/public/cpp/udp_socket_wrapper.cc
@@ -85,6 +85,12 @@ void UDPSocketWrapper::Bind(
socket_->Bind(addr.Pass(), callback);
}
+void UDPSocketWrapper::Connect(
+ NetAddressPtr remote_addr,
+ const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) {
+ socket_->Connect(remote_addr.Pass(), callback);
+}
+
void UDPSocketWrapper::SetSendBufferSize(uint32_t size,
const ErrorCallback& callback) {
socket_->SetSendBufferSize(size, callback);

Powered by Google App Engine
This is Rietveld 408576698