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

Unified Diff: net/udp/datagram_server_socket.h

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extra newline removed 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 side-by-side diff with in-line comments
Download patch
Index: net/udp/datagram_server_socket.h
diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h
index f2016c0e0d04916d4e14926c54360a3b3c2e011a..ef8ef28738345312e32201189545f16c3b890dde 100644
--- a/net/udp/datagram_server_socket.h
+++ b/net/udp/datagram_server_socket.h
@@ -93,6 +93,12 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket {
// Should be called before Bind().
// Returns a network error code.
virtual int SetMulticastLoopbackMode(bool loopback) = 0;
+
+ // Set the Differentiated Services Code Point.
Sergey Ulanov 2013/08/17 05:50:04 nit: This is a strange way to format comments. why
hubbe 2013/08/21 18:51:36 Old habits die hard. :) I reformatted this one for
+ // May do nothing on some platforms.
+ // Should be called before Bind().
+ // Returns a network error code.
+ virtual int SetToS(DiffServCodePoint dscp) = 0;
Sergey Ulanov 2013/08/17 05:50:04 Maybe call it SetTos()? SetToS reads as "set to s"
Sergey Ulanov 2013/08/17 05:50:04 This seem like something that belongs to UDPServer
hubbe 2013/08/21 18:51:36 Done. (Although, perhaps SetDSCP would be better..
hubbe 2013/08/21 18:51:36 I can't be sure, because this class doesn't docume
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698