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

Unified Diff: net/tools/quic/quic_socket_utils.h

Issue 1752823002: n/a (QUIC toy client/server changes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115400573
Patch Set: Revert to Patch Set 1 Created 4 years, 10 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
« no previous file with comments | « net/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_socket_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_socket_utils.h
diff --git a/net/tools/quic/quic_socket_utils.h b/net/tools/quic/quic_socket_utils.h
index 8a0e44202a72cb142c752689019247214271b8c5..a4640894f9fbbeae77fc7dd7e32a5729dcf0f421 100644
--- a/net/tools/quic/quic_socket_utils.h
+++ b/net/tools/quic/quic_socket_utils.h
@@ -72,6 +72,12 @@ class QuicSocketUtils {
// Returns the length of the packet info structure used.
static size_t SetIpInfoInCmsg(const IPAddress& self_address, cmsghdr* cmsg);
+ // Creates a UDP socket and sets appropriate socket options for QUIC.
+ // Returns the created FD if successful, -1 otherwise.
+ // |overflow_supported| is set to true if the socket supports it.
+ static int CreateUDPSocket(const IPEndPoint& address,
+ bool* overflow_supported);
+
private:
DISALLOW_COPY_AND_ASSIGN(QuicSocketUtils);
};
« no previous file with comments | « net/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_socket_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698