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

Unified Diff: runtime/bin/socket.cc

Issue 19263003: Add FileSystemWatcher class to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix android socket. Created 7 years, 3 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.h ('k') | runtime/bin/socket_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.cc
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc
index cd582eb201bf06efff68e9b21e5074f8d0a785c7..672e333b467970ba74fd708ace6d731dc8ec7167 100644
--- a/runtime/bin/socket.cc
+++ b/runtime/bin/socket.cc
@@ -285,6 +285,15 @@ void FUNCTION_NAME(Socket_GetStdioHandle)(Dart_NativeArguments args) {
}
+void FUNCTION_NAME(Socket_SetSocketId)(Dart_NativeArguments args) {
+ Dart_Handle socket_obj = Dart_GetNativeArgument(args, 0);
+ intptr_t id =
+ DartUtils::GetIntptrValue(Dart_GetNativeArgument(args, 1));
+ Dart_Handle err = Socket::SetSocketIdNativeField(socket_obj, id);
+ if (Dart_IsError(err)) Dart_PropagateError(err);
+}
+
+
void FUNCTION_NAME(ServerSocket_CreateBindListen)(Dart_NativeArguments args) {
Dart_Handle socket_obj = Dart_GetNativeArgument(args, 0);
Dart_Handle host_obj = Dart_GetNativeArgument(args, 1);
« no previous file with comments | « runtime/bin/socket.h ('k') | runtime/bin/socket_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698