| OLD | NEW |
| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // Used by TurnPortTest to mimic a case where proxy returns local host address | 267 // Used by TurnPortTest to mimic a case where proxy returns local host address |
| 268 // instead of the original one TurnPort was bound against. Please see WebRTC | 268 // instead of the original one TurnPort was bound against. Please see WebRTC |
| 269 // issue 3927 for more detail. | 269 // issue 3927 for more detail. |
| 270 void SetAlternativeLocalAddress(const SocketAddress& addr); | 270 void SetAlternativeLocalAddress(const SocketAddress& addr); |
| 271 | 271 |
| 272 int Bind(const SocketAddress& addr) override; | 272 int Bind(const SocketAddress& addr) override; |
| 273 int Connect(const SocketAddress& addr) override; | 273 int Connect(const SocketAddress& addr) override; |
| 274 int Close() override; | 274 int Close() override; |
| 275 int Send(const void* pv, size_t cb) override; | 275 int Send(const void* pv, size_t cb) override; |
| 276 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; | 276 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; |
| 277 int Recv(void* pv, size_t cb) override; | 277 int Recv(void* pv, size_t cb, int64_t* timestamp) override; |
| 278 int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) override; | 278 int RecvFrom(void* pv, |
| 279 size_t cb, |
| 280 SocketAddress* paddr, |
| 281 int64_t* timestamp) override; |
| 279 int Listen(int backlog) override; | 282 int Listen(int backlog) override; |
| 280 VirtualSocket* Accept(SocketAddress* paddr) override; | 283 VirtualSocket* Accept(SocketAddress* paddr) override; |
| 281 | 284 |
| 282 int GetError() const override; | 285 int GetError() const override; |
| 283 void SetError(int error) override; | 286 void SetError(int error) override; |
| 284 ConnState GetState() const override; | 287 ConnState GetState() const override; |
| 285 int GetOption(Option opt, int* value) override; | 288 int GetOption(Option opt, int* value) override; |
| 286 int SetOption(Option opt, int value) override; | 289 int SetOption(Option opt, int value) override; |
| 287 int EstimateMTU(uint16_t* mtu) override; | 290 int EstimateMTU(uint16_t* mtu) override; |
| 288 void OnMessage(Message* pmsg) override; | 291 void OnMessage(Message* pmsg) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 355 |
| 353 // Store the options that are set | 356 // Store the options that are set |
| 354 OptionsMap options_map_; | 357 OptionsMap options_map_; |
| 355 | 358 |
| 356 friend class VirtualSocketServer; | 359 friend class VirtualSocketServer; |
| 357 }; | 360 }; |
| 358 | 361 |
| 359 } // namespace rtc | 362 } // namespace rtc |
| 360 | 363 |
| 361 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ | 364 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ |
| OLD | NEW |