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