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

Unified Diff: content/common/p2p_sockets.h

Issue 6598053: P2P Sockets host implementation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: - Created 9 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 | « content/common/p2p_messages.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/p2p_sockets.h
diff --git a/content/common/p2p_sockets.h b/content/common/p2p_sockets.h
new file mode 100644
index 0000000000000000000000000000000000000000..5406f022c7dbf79e6e85cb00b3d59c4d7068f4ee
--- /dev/null
+++ b/content/common/p2p_sockets.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file defines some basic types used by the P2P-related IPC
+// messages.
+
+#ifndef CONTENT_COMMON_P2P_SOCKETS_H_
+#define CONTENT_COMMON_P2P_SOCKETS_H_
+
+#include "net/base/net_util.h"
+
+// Pair of IP address and port number.
+struct P2PSocketAddress {
+ P2PSocketAddress() : port(0) { }
+ net::IPAddressNumber address;
+ int port;
+};
+
+// Type of P2P Socket.
+enum P2PSocketType {
+ P2P_SOCKET_UDP,
+ P2P_SOCKET_TCP_SERVER,
+ P2P_SOCKET_TCP_CLIENT,
+};
+
+#endif // CONTENT_COMMON_P2P_SOCKETS_H_
« no previous file with comments | « content/common/p2p_messages.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698