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

Unified Diff: runtime/bin/socket_macos.cc

Issue 12380032: Added Socket::SetBlocking() and Socket::SetNonBlocking(). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/bin/socket_linux.cc ('k') | runtime/bin/socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_macos.cc
===================================================================
--- runtime/bin/socket_macos.cc (revision 19251)
+++ runtime/bin/socket_macos.cc (working copy)
@@ -36,7 +36,7 @@
}
FDUtils::SetCloseOnExec(fd);
- FDUtils::SetNonBlocking(fd);
+ Socket::SetNonBlocking(fd);
server = gethostbyname(host);
if (server == NULL) {
@@ -226,7 +226,7 @@
return -1;
}
- FDUtils::SetNonBlocking(fd);
+ Socket::SetNonBlocking(fd);
return fd;
}
@@ -245,7 +245,7 @@
socket = kTemporaryFailure;
}
} else {
- FDUtils::SetNonBlocking(socket);
+ Socket::SetNonBlocking(socket);
}
return socket;
}
@@ -262,4 +262,14 @@
}
}
+
+bool Socket::SetNonBlocking(intptr_t fd) {
+ return FDUtils::SetNonBlocking(fd);
+}
+
+
+bool Socket::SetBlocking(intptr_t fd) {
+ return FDUtils::SetBlocking(fd);
+}
+
#endif // defined(TARGET_OS_MACOS)
« no previous file with comments | « runtime/bin/socket_linux.cc ('k') | runtime/bin/socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698