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

Side by Side Diff: content/common/p2p_sockets.h

Issue 6685013: Use IPEndPoint for P2P IPC messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file defines some basic types used by the P2P-related IPC 5 // This file defines some basic types used by the P2P-related IPC
6 // messages. 6 // messages.
7 7
8 #ifndef CONTENT_COMMON_P2P_SOCKETS_H_ 8 #ifndef CONTENT_COMMON_P2P_SOCKETS_H_
9 #define CONTENT_COMMON_P2P_SOCKETS_H_ 9 #define CONTENT_COMMON_P2P_SOCKETS_H_
10 10
11 #include "net/base/net_util.h"
12
13 // Pair of IP address and port number.
14 struct P2PSocketAddress {
15 P2PSocketAddress();
16 ~P2PSocketAddress();
17 net::IPAddressNumber address;
18 int port;
19 };
20
21 // Type of P2P Socket. 11 // Type of P2P Socket.
22 enum P2PSocketType { 12 enum P2PSocketType {
23 P2P_SOCKET_UDP, 13 P2P_SOCKET_UDP,
24 P2P_SOCKET_TCP_SERVER, 14 P2P_SOCKET_TCP_SERVER,
25 P2P_SOCKET_TCP_CLIENT, 15 P2P_SOCKET_TCP_CLIENT,
26 }; 16 };
27 17
28 #endif // CONTENT_COMMON_P2P_SOCKETS_H_ 18 #endif // CONTENT_COMMON_P2P_SOCKETS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698