Chromium Code Reviews| 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 #include "net/udp/udp_socket_win.h" | 5 #include "net/udp/udp_socket_win.h" |
| 6 | 6 |
| 7 #include <mstcpip.h> | 7 #include <mstcpip.h> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 746 if (is_connected()) | 746 if (is_connected()) |
| 747 return ERR_SOCKET_IS_CONNECTED; | 747 return ERR_SOCKET_IS_CONNECTED; |
| 748 | 748 |
| 749 if (loopback) | 749 if (loopback) |
| 750 socket_options_ |= SOCKET_OPTION_MULTICAST_LOOP; | 750 socket_options_ |= SOCKET_OPTION_MULTICAST_LOOP; |
| 751 else | 751 else |
| 752 socket_options_ &= ~SOCKET_OPTION_MULTICAST_LOOP; | 752 socket_options_ &= ~SOCKET_OPTION_MULTICAST_LOOP; |
| 753 return OK; | 753 return OK; |
| 754 } | 754 } |
| 755 | 755 |
| 756 // TODO(hubbe): Implement differentiated services for windows. | |
| 757 // Note: setsockopt(IP_TOS) does not work on windows XP and later. | |
| 758 int UDPSocketWin::SetDiffServCodePoint(DiffServCodePoint dscp) { | |
| 759 return FAILED; | |
|
cbentzel
2013/10/17 01:32:57
NOT_IMPLEMENTED is probably a better choice.
hubbe
2013/10/21 19:39:21
Done.
| |
| 760 } | |
| 761 | |
| 756 } // namespace net | 762 } // namespace net |
| OLD | NEW |