OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Some socket related helper methods for quic. | 5 // Some socket related helper methods for quic. |
6 | 6 |
7 #ifndef NET_TOOLS_QUIC_QUIC_SOCKET_UTILS_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SOCKET_UTILS_H_ |
8 #define NET_TOOLS_QUIC_QUIC_SOCKET_UTILS_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SOCKET_UTILS_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
11 #include <sys/socket.h> | 11 #include <sys/socket.h> |
| 12 |
12 #include <string> | 13 #include <string> |
13 | 14 |
14 #include "base/basictypes.h" | 15 #include "base/macros.h" |
15 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
16 #include "net/quic/quic_bandwidth.h" | 17 #include "net/quic/quic_bandwidth.h" |
17 #include "net/quic/quic_types.h" | 18 #include "net/quic/quic_types.h" |
18 | 19 |
19 namespace net { | 20 namespace net { |
20 namespace tools { | 21 namespace tools { |
21 | 22 |
22 class QuicSocketUtils { | 23 class QuicSocketUtils { |
23 public: | 24 public: |
24 // If the msghdr contains IP_PKTINFO or IPV6_PKTINFO, this will return the | 25 // If the msghdr contains IP_PKTINFO or IPV6_PKTINFO, this will return the |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 cmsghdr* cmsg); | 75 cmsghdr* cmsg); |
75 | 76 |
76 private: | 77 private: |
77 DISALLOW_COPY_AND_ASSIGN(QuicSocketUtils); | 78 DISALLOW_COPY_AND_ASSIGN(QuicSocketUtils); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace tools | 81 } // namespace tools |
81 } // namespace net | 82 } // namespace net |
82 | 83 |
83 #endif // NET_TOOLS_QUIC_QUIC_SOCKET_UTILS_H_ | 84 #endif // NET_TOOLS_QUIC_QUIC_SOCKET_UTILS_H_ |
OLD | NEW |