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

Side by Side Diff: webrtc/base/asyncsocket.cc

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2010 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 SocketAddress AsyncSocketAdapter::GetRemoteAddress() const { 45 SocketAddress AsyncSocketAdapter::GetRemoteAddress() const {
46 return socket_->GetRemoteAddress(); 46 return socket_->GetRemoteAddress();
47 } 47 }
48 48
49 int AsyncSocketAdapter::Bind(const SocketAddress& addr) { 49 int AsyncSocketAdapter::Bind(const SocketAddress& addr) {
50 return socket_->Bind(addr); 50 return socket_->Bind(addr);
51 } 51 }
52 52
53 int AsyncSocketAdapter::BindToNetwork(NetworkHandle handle) {
54 return 0;
55 }
56
53 int AsyncSocketAdapter::Connect(const SocketAddress& addr) { 57 int AsyncSocketAdapter::Connect(const SocketAddress& addr) {
54 return socket_->Connect(addr); 58 return socket_->Connect(addr);
55 } 59 }
56 60
57 int AsyncSocketAdapter::Send(const void* pv, size_t cb) { 61 int AsyncSocketAdapter::Send(const void* pv, size_t cb) {
58 return socket_->Send(pv, cb); 62 return socket_->Send(pv, cb);
59 } 63 }
60 64
61 int AsyncSocketAdapter::SendTo(const void* pv, 65 int AsyncSocketAdapter::SendTo(const void* pv,
62 size_t cb, 66 size_t cb,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 122
119 void AsyncSocketAdapter::OnWriteEvent(AsyncSocket* socket) { 123 void AsyncSocketAdapter::OnWriteEvent(AsyncSocket* socket) {
120 SignalWriteEvent(this); 124 SignalWriteEvent(this);
121 } 125 }
122 126
123 void AsyncSocketAdapter::OnCloseEvent(AsyncSocket* socket, int err) { 127 void AsyncSocketAdapter::OnCloseEvent(AsyncSocket* socket, int err) {
124 SignalCloseEvent(this, err); 128 SignalCloseEvent(this, err);
125 } 129 }
126 130
127 } // namespace rtc 131 } // namespace rtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698