Flutter Engine
The Flutter Engine
|
#include <socket.h>
Public Types | |
enum | SocketRequest { kLookupRequest = 0 , kListInterfacesRequest = 1 , kReverseLookupRequest = 2 } |
enum | SocketFinalizer { kFinalizerNormal , kFinalizerListening , kFinalizerStdio , kFinalizerSignal } |
enum | SocketType { kTcpSocket = 18 , kUdpSocket = 19 , kInternalSocket = 20 , kInternalSignalSocket = 21 } |
Public Member Functions | |
Socket (intptr_t fd) | |
intptr_t | fd () const |
void | CloseFd () |
void | SetClosedFd () |
Dart_Port | isolate_port () const |
Dart_Port | port () const |
void | set_port (Dart_Port port) |
uint8_t * | udp_receive_buffer () const |
void | set_udp_receive_buffer (uint8_t *buffer) |
Public Member Functions inherited from dart::bin::ReferenceCounted< Socket > | |
ReferenceCounted () | |
virtual | ~ReferenceCounted () |
void | Retain () |
void | Release () |
Static Public Member Functions | |
static bool | Initialize () |
static intptr_t | CreateConnect (const RawAddr &addr) |
static intptr_t | CreateUnixDomainConnect (const RawAddr &addr) |
static intptr_t | CreateBindConnect (const RawAddr &addr, const RawAddr &source_addr) |
static intptr_t | CreateUnixDomainBindConnect (const RawAddr &addr, const RawAddr &source_addr) |
static intptr_t | CreateBindDatagram (const RawAddr &addr, bool reuseAddress, bool reusePort, int ttl=1) |
static CObject * | LookupRequest (const CObjectArray &request) |
static CObject * | ListInterfacesRequest (const CObjectArray &request) |
static CObject * | ReverseLookupRequest (const CObjectArray &request) |
static Dart_Port | GetServicePort () |
static void | SetSocketIdNativeField (Dart_Handle handle, intptr_t id, SocketFinalizer finalizer) |
static void | ReuseSocketIdNativeField (Dart_Handle handle, Socket *socket, SocketFinalizer finalizer) |
static Socket * | GetSocketIdNativeField (Dart_Handle socket) |
static bool | short_socket_read () |
static void | set_short_socket_read (bool short_socket_read) |
static bool | short_socket_write () |
static void | set_short_socket_write (bool short_socket_write) |
static bool | IsSignalSocketFlag (intptr_t flag) |
Friends | |
class | ReferenceCounted< Socket > |
Enumerator | |
---|---|
kFinalizerNormal | |
kFinalizerListening | |
kFinalizerStdio | |
kFinalizerSignal |
Enumerator | |
---|---|
kLookupRequest | |
kListInterfacesRequest | |
kReverseLookupRequest |
Enumerator | |
---|---|
kTcpSocket | |
kUdpSocket | |
kInternalSocket | |
kInternalSignalSocket |
Definition at line 43 of file socket.h.
|
explicit |
void dart::bin::Socket::CloseFd | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
static |
|
static |
Definition at line 1496 of file socket.cc.
|
static |
|
inline |
|
inlinestatic |
|
static |
Definition at line 1134 of file socket.cc.
|
static |
Definition at line 1057 of file socket.cc.
|
inline |
|
static |
Definition at line 1456 of file socket.cc.
|
static |
Definition at line 1103 of file socket.cc.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 67 of file socket.h.
void dart::bin::Socket::SetClosedFd | ( | ) |
|
static |
Definition at line 1489 of file socket.cc.
|
inlinestatic |
|
inlinestatic |
|
inline |
|
friend |