OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file defines some basic types used by the P2P-related IPC |
| 6 // messages. |
| 7 |
| 8 #ifndef CONTENT_COMMON_P2P_SOCKETS_H_ |
| 9 #define CONTENT_COMMON_P2P_SOCKETS_H_ |
| 10 |
| 11 #include "net/base/net_util.h" |
| 12 |
| 13 // Pair of IP address and port number. |
| 14 struct P2PSocketAddress { |
| 15 P2PSocketAddress() : port(0) { } |
| 16 net::IPAddressNumber address; |
| 17 int port; |
| 18 }; |
| 19 |
| 20 // Type of P2P Socket. |
| 21 enum P2PSocketType { |
| 22 P2P_SOCKET_UDP, |
| 23 P2P_SOCKET_TCP_SERVER, |
| 24 P2P_SOCKET_TCP_CLIENT, |
| 25 }; |
| 26 |
| 27 #endif // CONTENT_COMMON_P2P_SOCKETS_H_ |
OLD | NEW |