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

Unified Diff: sandbox/sandbox_poc/pocdll/network.cc

Issue 9716020: Add base::HostToNetXX() & NetToHostXX(), and use them to replace htonX() & ntohX() in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch a few remaining call-sites. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/private/net_address_private_impl.cc ('k') | sync/util/nigori.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/sandbox_poc/pocdll/network.cc
diff --git a/sandbox/sandbox_poc/pocdll/network.cc b/sandbox/sandbox_poc/pocdll/network.cc
index 09e9f332983f18b9eeafec6bbad90b0eb7b6ba4b..003c8ce2acab6bfdb1ee2707a634ca618439ae7a 100644
--- a/sandbox/sandbox_poc/pocdll/network.cc
+++ b/sandbox/sandbox_poc/pocdll/network.cc
@@ -35,7 +35,7 @@ void POCDLL_API TestNetworkListen(HANDLE log) {
sockaddr_in service;
service.sin_family = AF_INET;
service.sin_addr.s_addr = inet_addr("127.0.0.1");
- service.sin_port = htons(88);
+ service.sin_port = base::HostToNet16(88);
rvargas (doing something else) 2012/03/21 18:47:41 I'm on the fence about this particular change. POC
Wez 2012/03/21 20:09:03 Done.
if (bind(listen_socket, reinterpret_cast<SOCKADDR*>(&service),
sizeof(service)) == SOCKET_ERROR) {
« no previous file with comments | « ppapi/shared_impl/private/net_address_private_impl.cc ('k') | sync/util/nigori.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698