Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
sync_socket.cc File Reference
#include "bin/sync_socket.h"
#include "bin/dartutils.h"
#include "bin/io_buffer.h"
#include "bin/isolate_data.h"
#include "bin/lockers.h"
#include "bin/thread.h"
#include "bin/utils.h"
#include "include/dart_api.h"
#include "platform/globals.h"
#include "platform/utils.h"

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define DART_CHECK_ERROR_AND_CLEANUP(handle, ptr)
 
#define DART_CHECK_ERROR(handle)
 

Functions

void FUNCTION_NAME() dart::bin::SynchronousSocket_LookupRequest (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_CreateConnectSync (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_WriteList (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_ReadList (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_Available (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_CloseSync (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_Read (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_ShutdownRead (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_ShutdownWrite (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_GetPort (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SynchronousSocket_GetRemotePeer (Dart_NativeArguments args)
 
static void dart::bin::SynchronousSocketFinalizer (void *isolate_data, void *data)
 

Variables

static constexpr int dart::bin::kSocketIdNativeField = 0
 

Macro Definition Documentation

◆ DART_CHECK_ERROR

#define DART_CHECK_ERROR (   handle)
Value:
do { \
if (Dart_IsError((handle))) { \
Dart_SetReturnValue(args, (handle)); \
return; \
} \
} while (0)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

Definition at line 28 of file sync_socket.cc.

◆ DART_CHECK_ERROR_AND_CLEANUP

#define DART_CHECK_ERROR_AND_CLEANUP (   handle,
  ptr 
)
Value:
do { \
if (Dart_IsError((handle))) { \
delete (ptr); \
Dart_SetReturnValue(args, (handle)); \
return; \
} \
} while (0)

Definition at line 19 of file sync_socket.cc.