Home
last modified time | relevance | path

Searched refs:sendBuf (Results 1 – 6 of 6) sorted by relevance

/developtools/profiler/host/smartperf/client/client_command/
Dsp_server_socket.cpp64 int SpServerSocket::Sendto(std::string &sendBuf) in Sendto() argument
67 …sendto(sock, sendBuf.c_str(), sendBuf.size(), 0, reinterpret_cast<struct sockaddr*>(&client), len); in Sendto()
71 int SpServerSocket::Send(std::string sendBuf) in Send() argument
73 int sendBytes = send(connFd, sendBuf.c_str(), sendBuf.size(), 0); in Send()
/developtools/profiler/device/plugins/arkts_plugin/src/
Darkts_plugin.cpp273 char* sendBuf = msgBuf.get(); in ClientSendReq() local
275 sendBuf[0] = 0x81; // 0x81: the text message sent by the server should start with '0x81'. in ClientSendReq()
280 sendBuf[1] = msgLen | (mask << 7); // 7: mask need shift left by 7 bits in ClientSendReq()
283sendBuf[1] = 126 | (mask << 7); // 126: payloadLen according to the spec; 7: mask shift left … in ClientSendReq()
284 sendBuf[2] = ((msgLen >> 8) & 0xff); // 8: shift right by 8 bits => res * (256^1) in ClientSendReq()
285 sendBuf[3] = (msgLen & 0xff); // 3: store len's data => res * (256^0) in ClientSendReq()
288sendBuf[1] = 127 | (mask << 7); // 127: payloadLen according to the spec; 7: mask shift left by… in ClientSendReq()
290 sendBuf[i] = 0; in ClientSendReq()
292 sendBuf[6] = ((msgLen & 0xff000000) >> 24); // 6: shift 24 bits => res * (256^3) in ClientSendReq()
293 sendBuf[7] = ((msgLen & 0x00ff0000) >> 16); // 7: shift 16 bits => res * (256^2) in ClientSendReq()
[all …]
/developtools/profiler/host/smartperf/client/client_command/include/
Dsp_server_socket.h32 int Sendto(std::string &sendBuf);
36 int Send(std::string sendBuf);
/developtools/hdc/src/daemon/
Ddaemon_tcp.cpp62 string sendBuf = Base::StringFormat("%s-%d", HANDSHAKE_MESSAGE.c_str(), tcpListenPort); in TransmitConfig() local
63 uv_buf_t sndbuf = uv_buf_init((char *)sendBuf.c_str(), sendBuf.size()); in TransmitConfig()
/developtools/hdc/src/common/
Dtransfer.cpp64 int HdcTransferBase::SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes) in SimpleFileIO() argument
101 if (bytes > 0 && memcpy_s(ioContext->bufIO, bufMaxSize, sendBuf, bytes) != EOK) { in SimpleFileIO()
159 uint8_t *sendBuf = data - payloadPrefixReserve; in SendIOPayload() local
170 sendBuf = new uint8_t[sendBufSize](); in SendIOPayload()
171 if (!sendBuf) { in SendIOPayload()
175 … compressSize = LZ4_compress_default((const char *)data, (char *)sendBuf + payloadPrefixReserve, in SendIOPayload()
191 if (EOK != memcpy_s(sendBuf, sendBufSize, head.c_str(), head.size() + 1)) { in SendIOPayload()
194 ret = SendToAnother(commandData, sendBuf, payloadPrefixReserve + compressSize) > 0; in SendIOPayload()
198 delete[] sendBuf; in SendIOPayload()
Dtransfer.h133 int SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes);