| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 int InitiateConnect(const SocketAddress& addr, bool use_delay); | 300 int InitiateConnect(const SocketAddress& addr, bool use_delay); |
| 301 void CompleteConnect(const SocketAddress& addr, bool notify); | 301 void CompleteConnect(const SocketAddress& addr, bool notify); |
| 302 int SendUdp(const void* pv, size_t cb, const SocketAddress& addr); | 302 int SendUdp(const void* pv, size_t cb, const SocketAddress& addr); |
| 303 int SendTcp(const void* pv, size_t cb); | 303 int SendTcp(const void* pv, size_t cb); |
| 304 | 304 |
| 305 // Used by server sockets to set the local address without binding. | 305 // Used by server sockets to set the local address without binding. |
| 306 void SetLocalAddress(const SocketAddress& addr); | 306 void SetLocalAddress(const SocketAddress& addr); |
| 307 | 307 |
| 308 VirtualSocketServer* server_; | 308 VirtualSocketServer* server_; |
| 309 int family_; | |
| 310 int type_; | 309 int type_; |
| 311 bool async_; | 310 bool async_; |
| 312 ConnState state_; | 311 ConnState state_; |
| 313 int error_; | 312 int error_; |
| 314 SocketAddress local_addr_; | 313 SocketAddress local_addr_; |
| 315 SocketAddress alternative_local_addr_; | 314 SocketAddress alternative_local_addr_; |
| 316 SocketAddress remote_addr_; | 315 SocketAddress remote_addr_; |
| 317 | 316 |
| 318 // Pending sockets which can be Accepted | 317 // Pending sockets which can be Accepted |
| 319 ListenQueue* listen_queue_; | 318 ListenQueue* listen_queue_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 345 | 344 |
| 346 // Store the options that are set | 345 // Store the options that are set |
| 347 OptionsMap options_map_; | 346 OptionsMap options_map_; |
| 348 | 347 |
| 349 friend class VirtualSocketServer; | 348 friend class VirtualSocketServer; |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 } // namespace rtc | 351 } // namespace rtc |
| 353 | 352 |
| 354 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ | 353 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ |
| OLD | NEW |