#include <eventhandler_win.h>
Definition at line 37 of file eventhandler_win.h.
◆ Operation
Enumerator |
---|
kAccept | |
kRead | |
kRecvFrom | |
kWrite | |
kSendTo | |
kDisconnect | |
kConnect | |
Definition at line 39 of file eventhandler_win.h.
◆ AllocateAcceptBuffer()
◆ AllocateConnectBuffer()
static OverlappedBuffer * dart::bin::OverlappedBuffer::AllocateConnectBuffer |
( |
| ) |
|
|
static |
◆ AllocateDisconnectBuffer()
static OverlappedBuffer * dart::bin::OverlappedBuffer::AllocateDisconnectBuffer |
( |
| ) |
|
|
static |
◆ AllocateReadBuffer()
◆ AllocateRecvFromBuffer()
static OverlappedBuffer * dart::bin::OverlappedBuffer::AllocateRecvFromBuffer |
( |
int |
buffer_size | ) |
|
|
static |
◆ AllocateSendToBuffer()
◆ AllocateWriteBuffer()
◆ client()
SOCKET dart::bin::OverlappedBuffer::client |
( |
| ) |
const |
|
inline |
◆ DisposeBuffer()
static void dart::bin::OverlappedBuffer::DisposeBuffer |
( |
OverlappedBuffer * |
buffer | ) |
|
|
static |
◆ from()
struct sockaddr * dart::bin::OverlappedBuffer::from |
( |
| ) |
const |
|
inline |
◆ from_len()
socklen_t dart::bin::OverlappedBuffer::from_len |
( |
| ) |
const |
|
inline |
Definition at line 83 of file eventhandler_win.h.
83{ return from_ == nullptr ? 0 : *from_len_addr_; }
◆ from_len_addr()
socklen_t * dart::bin::OverlappedBuffer::from_len_addr |
( |
| ) |
const |
|
inline |
◆ GetBufferSize()
int dart::bin::OverlappedBuffer::GetBufferSize |
( |
| ) |
const |
|
inline |
◆ GetBufferStart()
char * dart::bin::OverlappedBuffer::GetBufferStart |
( |
| ) |
|
|
inline |
Definition at line 79 of file eventhandler_win.h.
79{ return reinterpret_cast<char*>(&buffer_data_); }
◆ GetCleanOverlapped()
OVERLAPPED * dart::bin::OverlappedBuffer::GetCleanOverlapped |
( |
| ) |
|
|
inline |
Definition at line 87 of file eventhandler_win.h.
87 {
88 memset(&overlapped_, 0, sizeof(overlapped_));
89 return &overlapped_;
90 }
◆ GetFromOverlapped()
◆ GetRemainingLength()
int dart::bin::OverlappedBuffer::GetRemainingLength |
( |
| ) |
|
◆ GetWASBUF()
WSABUF * dart::bin::OverlappedBuffer::GetWASBUF |
( |
| ) |
|
|
inline |
Definition at line 93 of file eventhandler_win.h.
93 {
96 return &wbuf_;
97 }
int GetBufferSize() const
◆ IsEmpty()
bool dart::bin::OverlappedBuffer::IsEmpty |
( |
| ) |
|
|
inline |
◆ operation()
Operation dart::bin::OverlappedBuffer::operation |
( |
| ) |
const |
|
inline |
◆ operator delete()
void dart::bin::OverlappedBuffer::operator delete |
( |
void * |
buffer | ) |
|
|
inline |
◆ Read()
int dart::bin::OverlappedBuffer::Read |
( |
void * |
buffer, |
|
|
int |
num_bytes |
|
) |
| |
◆ set_data_length()
void dart::bin::OverlappedBuffer::set_data_length |
( |
int |
data_length | ) |
|
|
inline |
◆ Write()
int dart::bin::OverlappedBuffer::Write |
( |
const void * |
buffer, |
|
|
int |
num_bytes |
|
) |
| |
The documentation for this class was generated from the following file: