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

Side by Side Diff: webrtc/base/physicalsocketserver.h

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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ~PhysicalSocket() override; 122 ~PhysicalSocket() override;
123 123
124 // Creates the underlying OS socket (same as the "socket" function). 124 // Creates the underlying OS socket (same as the "socket" function).
125 virtual bool Create(int family, int type); 125 virtual bool Create(int family, int type);
126 126
127 SocketAddress GetLocalAddress() const override; 127 SocketAddress GetLocalAddress() const override;
128 SocketAddress GetRemoteAddress() const override; 128 SocketAddress GetRemoteAddress() const override;
129 129
130 int Bind(const SocketAddress& bind_addr) override; 130 int Bind(const SocketAddress& bind_addr) override;
131 int Connect(const SocketAddress& addr) override; 131 int Connect(const SocketAddress& addr) override;
132 int BindToNetwork(NetworkHandle network) override;
132 133
133 int GetError() const override; 134 int GetError() const override;
134 void SetError(int error) override; 135 void SetError(int error) override;
135 136
136 ConnState GetState() const override; 137 ConnState GetState() const override;
137 138
138 int GetOption(Option opt, int* value) override; 139 int GetOption(Option opt, int* value) override;
139 int SetOption(Option opt, int value) override; 140 int SetOption(Option opt, int value) override;
140 141
141 int Send(const void* pv, size_t cb) override; 142 int Send(const void* pv, size_t cb) override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 static int next_id_; 214 static int next_id_;
214 int id_; 215 int id_;
215 bool signal_close_; 216 bool signal_close_;
216 int signal_err_; 217 int signal_err_;
217 #endif // WEBRTC_WIN 218 #endif // WEBRTC_WIN
218 }; 219 };
219 220
220 } // namespace rtc 221 } // namespace rtc
221 222
222 #endif // WEBRTC_BASE_PHYSICALSOCKETSERVER_H__ 223 #endif // WEBRTC_BASE_PHYSICALSOCKETSERVER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698