#include <sync_socket.h>
Definition at line 14 of file sync_socket.h.
◆ SynchronousSocket()
dart::bin::SynchronousSocket::SynchronousSocket |
( |
intptr_t |
fd | ) |
|
|
inlineexplicit |
◆ ~SynchronousSocket()
dart::bin::SynchronousSocket::~SynchronousSocket |
( |
| ) |
|
|
inline |
◆ Available()
static intptr_t dart::bin::SynchronousSocket::Available |
( |
intptr_t |
fd | ) |
|
|
static |
◆ Close()
static void dart::bin::SynchronousSocket::Close |
( |
intptr_t |
fd | ) |
|
|
static |
◆ CreateConnect()
static intptr_t dart::bin::SynchronousSocket::CreateConnect |
( |
const RawAddr & |
addr | ) |
|
|
static |
◆ fd()
intptr_t dart::bin::SynchronousSocket::fd |
( |
| ) |
const |
|
inline |
◆ GetPort()
static intptr_t dart::bin::SynchronousSocket::GetPort |
( |
intptr_t |
fd | ) |
|
|
static |
◆ GetRemotePeer()
static SocketAddress * dart::bin::SynchronousSocket::GetRemotePeer |
( |
intptr_t |
fd, |
|
|
intptr_t * |
port |
|
) |
| |
|
static |
◆ GetSocketIdNativeField()
Definition at line 341 of file sync_socket.cc.
343 {
344 ASSERT(socket !=
nullptr);
350 }
352 if (*socket == nullptr) {
355 }
357}
static Dart_Handle NewInternalError(const char *message)
SynchronousSocket(intptr_t fd)
struct _Dart_Handle * Dart_Handle
static constexpr int kSocketIdNativeField
DART_EXPORT Dart_Handle Dart_GetNativeInstanceField(Dart_Handle obj, int index, intptr_t *value)
DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception)
DART_EXPORT void Dart_PropagateError(Dart_Handle handle)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
◆ Initialize()
static bool dart::bin::SynchronousSocket::Initialize |
( |
| ) |
|
|
static |
◆ Read()
static intptr_t dart::bin::SynchronousSocket::Read |
( |
intptr_t |
fd, |
|
|
void * |
buffer, |
|
|
intptr_t |
num_bytes |
|
) |
| |
|
static |
◆ SetClosedFd()
void dart::bin::SynchronousSocket::SetClosedFd |
( |
| ) |
|
|
inline |
◆ SetSocketIdNativeField()
Definition at line 325 of file sync_socket.cc.
327 {
331 delete socket;
333 }
334
339}
const uint8_t uint32_t uint32_t GError ** error
static void SynchronousSocketFinalizer(void *isolate_data, void *data)
DART_EXPORT Dart_FinalizableHandle Dart_NewFinalizableHandle(Dart_Handle object, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
DART_EXPORT Dart_Handle Dart_SetNativeInstanceField(Dart_Handle obj, int index, intptr_t value)
◆ ShutdownRead()
static void dart::bin::SynchronousSocket::ShutdownRead |
( |
intptr_t |
fd | ) |
|
|
static |
◆ ShutdownWrite()
static void dart::bin::SynchronousSocket::ShutdownWrite |
( |
intptr_t |
fd | ) |
|
|
static |
◆ Write()
static intptr_t dart::bin::SynchronousSocket::Write |
( |
intptr_t |
fd, |
|
|
const void * |
buffer, |
|
|
intptr_t |
num_bytes |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: