SpiecsEngine
Loading...
Searching...
No Matches
◆
WriteFd()
size_t Spices::Net::Buffer::WriteFd
(
SOCKET
fd
,
int *
saveErrno
) const
Write to
Socket
.
Parameters
[in]
fd
SOCKET.
[in,out]
saveErrno
Error value.
Returns
Returns write bytes.
Note
write api can only be used in linux, on windows use send instead,
Definition at line
72
of file
Buffer.cpp
.
73
{
74
int
n = ::send(fd,
Peek
(),
ReadableBytes
(), 0);
75
76
if
(n < 0)
77
{
78
*saveErrno = WSAGetLastError();
79
}
80
81
return
n;
82
}
Spices::Net::Buffer::Peek
const char * Peek() const
Get read area start pointer.
Definition
Buffer.h:73
Spices::Net::Buffer::ReadableBytes
size_t ReadableBytes() const
Get readable area bytes.
Definition
Buffer.h:46
Spices
Net
Buffer
Generated on Sun Mar 8 2026 10:24:50 for SpiecsEngine by
1.10.0