Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: net/udp/udp_socket_win.h

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments adressed Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef NET_UDP_UDP_SOCKET_WIN_H_ 5 #ifndef NET_UDP_UDP_SOCKET_WIN_H_
6 #define NET_UDP_UDP_SOCKET_WIN_H_ 6 #define NET_UDP_UDP_SOCKET_WIN_H_
7 7
8 #include <winsock2.h> 8 #include <winsock2.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Note: the behavior of |SetMulticastLoopbackMode| is slightly 144 // Note: the behavior of |SetMulticastLoopbackMode| is slightly
145 // different between Windows and Unix-like systems. The inconsistency only 145 // different between Windows and Unix-like systems. The inconsistency only
146 // happens when there are more than one applications on the same host 146 // happens when there are more than one applications on the same host
147 // joined to the same multicast group while having different settings on 147 // joined to the same multicast group while having different settings on
148 // multicast loopback mode. On Windows, the applications with loopback off 148 // multicast loopback mode. On Windows, the applications with loopback off
149 // will not RECEIVE the loopback packets; while on Unix-like systems, the 149 // will not RECEIVE the loopback packets; while on Unix-like systems, the
150 // applications with loopback off will not SEND the loopback packets to 150 // applications with loopback off will not SEND the loopback packets to
151 // other applications on the same host. See MSDN: http://goo.gl/6vqbj 151 // other applications on the same host. See MSDN: http://goo.gl/6vqbj
152 int SetMulticastLoopbackMode(bool loopback); 152 int SetMulticastLoopbackMode(bool loopback);
153 153
154 // Set the differentiated services flags on outgoing packets. May not
155 // do anything on some platforms.
156 int SetDiffServCodePoint(DiffServCodePoint dscp);
157
154 private: 158 private:
155 enum SocketOptions { 159 enum SocketOptions {
156 SOCKET_OPTION_REUSE_ADDRESS = 1 << 0, 160 SOCKET_OPTION_REUSE_ADDRESS = 1 << 0,
157 SOCKET_OPTION_BROADCAST = 1 << 1, 161 SOCKET_OPTION_BROADCAST = 1 << 1,
158 SOCKET_OPTION_MULTICAST_LOOP = 1 << 2 162 SOCKET_OPTION_MULTICAST_LOOP = 1 << 2
159 }; 163 };
160 164
161 class Core; 165 class Core;
162 166
163 void DoReadCallback(int rv); 167 void DoReadCallback(int rv);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 CompletionCallback write_callback_; 241 CompletionCallback write_callback_;
238 242
239 BoundNetLog net_log_; 243 BoundNetLog net_log_;
240 244
241 DISALLOW_COPY_AND_ASSIGN(UDPSocketWin); 245 DISALLOW_COPY_AND_ASSIGN(UDPSocketWin);
242 }; 246 };
243 247
244 } // namespace net 248 } // namespace net
245 249
246 #endif // NET_UDP_UDP_SOCKET_WIN_H_ 250 #endif // NET_UDP_UDP_SOCKET_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698