Index: runtime/bin/socket.cc |
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc |
index cf3b37d8b922839cbaa7733d9877acc5ec36a5ea..1b619517cececd22147bb312f367fb6a684b5855 100644 |
--- a/runtime/bin/socket.cc |
+++ b/runtime/bin/socket.cc |
@@ -349,6 +349,13 @@ void FUNCTION_NAME(Socket_GetStdioHandle)(Dart_NativeArguments args) { |
} |
+void FUNCTION_NAME(Socket_GetSocketId)(Dart_NativeArguments args) { |
+ intptr_t id = |
+ Socket::GetSocketIdNativeField(Dart_GetNativeArgument(args, 0)); |
+ Dart_SetReturnValue(args, Dart_NewInteger(id)); |
+} |
+ |
+ |
void FUNCTION_NAME(Socket_SetSocketId)(Dart_NativeArguments args) { |
intptr_t id = |
DartUtils::GetIntptrValue(Dart_GetNativeArgument(args, 1)); |