Home
last modified time | relevance | path

Searched refs:sendBuf (Results 1 - 5 of 5) sorted by relevance

/developtools/profiler/host/smartperf/client/client_command/
H A Dsp_server_socket.cpp76 int SpServerSocket::Sendto(std::string &sendBuf) in Sendto() argument
79 sendto(sock, sendBuf.c_str(), sendBuf.size(), 0, reinterpret_cast<struct sockaddr *>(&client), len); in Sendto()
83 int SpServerSocket::Send(const std::string &sendBuf) const in Send()
85 int sendBytes = send(connFd, sendBuf.c_str(), sendBuf.size(), 0); in Send()
/developtools/profiler/host/smartperf/client/client_command/include/
H A Dsp_server_socket.h33 int Sendto(std::string &sendBuf);
37 int Send(const std::string &sendBuf) const;
/developtools/hdc/src/daemon/
H A Ddaemon_tcp.cpp59 string sendBuf = Base::StringFormat("%s-%d", HANDSHAKE_MESSAGE.c_str(), tcpListenPort); in TransmitConfig() local
60 uv_buf_t sndbuf = uv_buf_init((char *)sendBuf.c_str(), sendBuf.size()); in TransmitConfig()
/developtools/hdc/src/common/
H A Dtransfer.cpp78 int HdcTransferBase::SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes) in SimpleFileIO() argument
119 if (context->master) { // master just read, and slave just write.when master/read, sendBuf can be nullptr in SimpleFileIO()
125 if (bytes > 0 && memcpy_s(ioContext->bufIO, bufMaxSize, sendBuf, bytes) != EOK) { in SimpleFileIO()
185 uint8_t *sendBuf = data - payloadPrefixReserve; in SendIOPayload() local
196 sendBuf = new uint8_t[sendBufSize](); in SendIOPayload()
197 if (!sendBuf) { in SendIOPayload()
201 compressSize = LZ4_compress_default((const char *)data, (char *)sendBuf + payloadPrefixReserve, in SendIOPayload()
217 if (EOK != memcpy_s(sendBuf, sendBufSize, head.c_str(), head.size() + 1)) { in SendIOPayload()
220 ret = SendToAnother(commandData, sendBuf, payloadPrefixReserve + compressSize) > 0; in SendIOPayload()
224 delete[] sendBuf; in SendIOPayload()
[all...]
H A Dtransfer.h157 int SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes);

Completed in 3 milliseconds