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); |