| OLD | NEW | 
|   1 /* |   1 /* | 
|   2  *  Copyright 2011 The WebRTC Project Authors. All rights reserved. |   2  *  Copyright 2011 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 19 matching lines...) Expand all  Loading... | 
|  30                                      uint16_t min_port, |  30                                      uint16_t min_port, | 
|  31                                      uint16_t max_port) override; |  31                                      uint16_t max_port) override; | 
|  32   AsyncPacketSocket* CreateServerTcpSocket(const SocketAddress& local_address, |  32   AsyncPacketSocket* CreateServerTcpSocket(const SocketAddress& local_address, | 
|  33                                            uint16_t min_port, |  33                                            uint16_t min_port, | 
|  34                                            uint16_t max_port, |  34                                            uint16_t max_port, | 
|  35                                            int opts) override; |  35                                            int opts) override; | 
|  36   AsyncPacketSocket* CreateClientTcpSocket(const SocketAddress& local_address, |  36   AsyncPacketSocket* CreateClientTcpSocket(const SocketAddress& local_address, | 
|  37                                            const SocketAddress& remote_address, |  37                                            const SocketAddress& remote_address, | 
|  38                                            const ProxyInfo& proxy_info, |  38                                            const ProxyInfo& proxy_info, | 
|  39                                            const std::string& user_agent, |  39                                            const std::string& user_agent, | 
|  40                                            int opts) override; |  40                                            int opts) override { | 
 |  41     //PacketSocketTcpOptions tcp_options = {.opts = opts}; | 
 |  42     PacketSocketTcpOptions tcp_options; | 
 |  43     tcp_options.opts = opts; | 
 |  44     return CreateClientTcpSocket(local_address, remote_address, proxy_info, | 
 |  45                                  user_agent, tcp_options); | 
 |  46   } | 
 |  47   AsyncPacketSocket* CreateClientTcpSocket( | 
 |  48       const SocketAddress& local_address, | 
 |  49       const SocketAddress& remote_address, | 
 |  50       const ProxyInfo& proxy_info, | 
 |  51       const std::string& user_agent, | 
 |  52       const PacketSocketTcpOptions& tcp_options) override; | 
|  41  |  53  | 
|  42   AsyncResolverInterface* CreateAsyncResolver() override; |  54   AsyncResolverInterface* CreateAsyncResolver() override; | 
|  43  |  55  | 
|  44  private: |  56  private: | 
|  45   int BindSocket(AsyncSocket* socket, |  57   int BindSocket(AsyncSocket* socket, | 
|  46                  const SocketAddress& local_address, |  58                  const SocketAddress& local_address, | 
|  47                  uint16_t min_port, |  59                  uint16_t min_port, | 
|  48                  uint16_t max_port); |  60                  uint16_t max_port); | 
|  49  |  61  | 
|  50   SocketFactory* socket_factory(); |  62   SocketFactory* socket_factory(); | 
|  51  |  63  | 
|  52   Thread* thread_; |  64   Thread* thread_; | 
|  53   SocketFactory* socket_factory_; |  65   SocketFactory* socket_factory_; | 
|  54 }; |  66 }; | 
|  55  |  67  | 
|  56 }  // namespace rtc |  68 }  // namespace rtc | 
|  57  |  69  | 
|  58 #endif  // WEBRTC_P2P_BASE_BASICPACKETSOCKETFACTORY_H_ |  70 #endif  // WEBRTC_P2P_BASE_BASICPACKETSOCKETFACTORY_H_ | 
| OLD | NEW |