Lines Matching refs:client
21 bool Recv(int32_t client, std::string& buffer, int32_t flags)
26 auto succeeded = Recv(client, buffer.data(), buffer.size(), flags);
33 bool Recv(int32_t client, char* buf, size_t totalLen, int32_t flags)
38 while ((len = recv(client, buf + recvLen, totalLen - recvLen, flags)) < 0 &&
51 bool Recv(int32_t client, uint8_t* buf, size_t totalLen, int32_t flags)
53 return Recv(client, reinterpret_cast<char *>(buf), totalLen, flags);
56 bool Send(int32_t client, const std::string& message, int32_t flags)
58 return Send(client, message.c_str(), message.size(), flags);
61 bool Send(int32_t client, const char* buf, size_t totalLen, int32_t flags)
65 ssize_t len = send(client, buf + sendLen, totalLen - sendLen, flags);