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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 SocketAddress* paddr, | 304 SocketAddress* paddr, |
305 int64_t* timestamp) override; | 305 int64_t* timestamp) override; |
306 int Listen(int backlog) override; | 306 int Listen(int backlog) override; |
307 VirtualSocket* Accept(SocketAddress* paddr) override; | 307 VirtualSocket* Accept(SocketAddress* paddr) override; |
308 | 308 |
309 int GetError() const override; | 309 int GetError() const override; |
310 void SetError(int error) override; | 310 void SetError(int error) override; |
311 ConnState GetState() const override; | 311 ConnState GetState() const override; |
312 int GetOption(Option opt, int* value) override; | 312 int GetOption(Option opt, int* value) override; |
313 int SetOption(Option opt, int value) override; | 313 int SetOption(Option opt, int value) override; |
314 int EstimateMTU(uint16_t* mtu) override; | |
315 void OnMessage(Message* pmsg) override; | 314 void OnMessage(Message* pmsg) override; |
316 | 315 |
317 bool was_any() { return was_any_; } | 316 bool was_any() { return was_any_; } |
318 void set_was_any(bool was_any) { was_any_ = was_any; } | 317 void set_was_any(bool was_any) { was_any_ = was_any; } |
319 | 318 |
320 // For testing purpose only. Fired when client socket is bound to an address. | 319 // For testing purpose only. Fired when client socket is bound to an address. |
321 sigslot::signal2<VirtualSocket*, const SocketAddress&> SignalAddressReady; | 320 sigslot::signal2<VirtualSocket*, const SocketAddress&> SignalAddressReady; |
322 | 321 |
323 private: | 322 private: |
324 struct NetworkEntry { | 323 struct NetworkEntry { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 385 |
387 // Store the options that are set | 386 // Store the options that are set |
388 OptionsMap options_map_; | 387 OptionsMap options_map_; |
389 | 388 |
390 friend class VirtualSocketServer; | 389 friend class VirtualSocketServer; |
391 }; | 390 }; |
392 | 391 |
393 } // namespace rtc | 392 } // namespace rtc |
394 | 393 |
395 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ | 394 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ |
OLD | NEW |