H A D | network.cpp | 21 bool Recv(int32_t client, std::string& buffer, int32_t flags) in Recv() argument 26 auto succeeded = Recv(client, buffer.data(), buffer.size(), flags); in Recv() 33 bool Recv(int32_t client, char* buf, size_t totalLen, int32_t flags) in Recv() argument 38 while ((len = recv(client, buf + recvLen, totalLen - recvLen, flags)) < 0 && in Recv() 51 bool Recv(int32_t client, uint8_t* buf, size_t totalLen, int32_t flags) in Recv() argument 53 return Recv(client, reinterpret_cast<char *>(buf), totalLen, flags); in Recv() 56 bool Send(int32_t client, const std::string& message, int32_t flags) in Send() argument 58 return Send(client, message.c_str(), message.size(), flags); in Send() 61 bool Send(int32_t client, const char* buf, size_t totalLen, int32_t flags) in Send() argument 65 ssize_t len = send(client, bu in Send() [all...] |