OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_UDP_DATAGRAM_SOCKET_H_ | 5 #ifndef NET_UDP_DATAGRAM_SOCKET_H_ |
6 #define NET_UDP_DATAGRAM_SOCKET_H_ | 6 #define NET_UDP_DATAGRAM_SOCKET_H_ |
7 | 7 |
8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // Close the socket. | 27 // Close the socket. |
28 virtual void Close() = 0; | 28 virtual void Close() = 0; |
29 | 29 |
30 // Copy the remote udp address into |address| and return a network error code. | 30 // Copy the remote udp address into |address| and return a network error code. |
31 virtual int GetPeerAddress(IPEndPoint* address) const = 0; | 31 virtual int GetPeerAddress(IPEndPoint* address) const = 0; |
32 | 32 |
33 // Copy the local udp address into |address| and return a network error code. | 33 // Copy the local udp address into |address| and return a network error code. |
34 // (similar to getsockname) | 34 // (similar to getsockname) |
35 virtual int GetLocalAddress(IPEndPoint* address) const = 0; | 35 virtual int GetLocalAddress(IPEndPoint* address) const = 0; |
36 | 36 |
37 // If supported by the platform, configures the socket to set the DF | |
38 // (Do not Fragment) bit on packets, which prevents routers from fragmenting | |
39 // them. Also, for IPv6, it prevents hosts from fragmenting them. | |
mmenke
2016/08/12 19:46:05
hosts -> remote endpoint (Note that this is used f
mmenke
2016/08/12 19:46:05
Mention the return value, and if the socket is sti
Ryan Hamilton
2016/08/12 21:46:02
Done.
| |
40 virtual int SetDoNotFragment() = 0; | |
41 | |
37 // Gets the NetLog for this socket. | 42 // Gets the NetLog for this socket. |
38 virtual const BoundNetLog& NetLog() const = 0; | 43 virtual const BoundNetLog& NetLog() const = 0; |
39 }; | 44 }; |
40 | 45 |
41 } // namespace net | 46 } // namespace net |
42 | 47 |
43 #endif // NET_UDP_DATAGRAM_SOCKET_H_ | 48 #endif // NET_UDP_DATAGRAM_SOCKET_H_ |
OLD | NEW |