8using namespace sspiutils;
10SocketStreamWrapper::SocketStreamWrapper(
SOCKET userSock)
15uint32_t SocketStreamWrapper::Read(
void* buffer, uint32_t cb)
17 int recvd = recv(sock,
static_cast<char*
>(buffer), cb, 0);
18 if (recvd ==
one_of(0, SOCKET_ERROR)) {
24uint32_t SocketStreamWrapper::Write(
void* buffer, uint32_t cb)
26 int sent = send(sock,
static_cast<char*
>(buffer), cb, 0);
27 if (sent ==
one_of(0, SOCKET_ERROR)) {
This file implemented 3 utility functions: