Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
|
jam
2011/03/01 19:35:54
this should go into content\common
Sergey Ulanov
2011/03/01 22:34:17
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_P2P_SOCKETS_H_ | |
| 6 #define CHROME_COMMON_P2P_SOCKETS_H_ | |
| 7 | |
| 8 #include "net/base/net_util.h" | |
| 9 | |
| 10 struct P2PSocketAddress { | |
|
jam
2011/03/01 19:35:54
nit: please comment at least this header on what i
Sergey Ulanov
2011/03/01 22:34:17
Done.
| |
| 11 P2PSocketAddress() : port(0) { } | |
| 12 net::IPAddressNumber address; | |
| 13 int port; | |
| 14 }; | |
| 15 | |
| 16 enum P2PSocketType { | |
| 17 P2P_SOCKET_UDP, | |
| 18 P2P_SOCKET_TCP_SERVER, | |
| 19 P2P_SOCKET_TCP_CLIENT, | |
| 20 }; | |
| 21 | |
| 22 #endif // CHROME_COMMON_P2P_SOCKETS_H_ | |
| OLD | NEW |