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.cpp71 int SpServerSocket::Sendto(std::string &sendBuf) in Sendto() argument
74 …sendto(sock, sendBuf.c_str(), sendBuf.size(), 0, reinterpret_cast<struct sockaddr *>(&client), len… in Sendto()
78 int SpServerSocket::Send(const std::string &sendBuf) const in Send()
80 int sendBytes = send(connFd, sendBuf.c_str(), sendBuf.size(), 0); in Send()
/developtools/profiler/device/plugins/arkts_plugin/src/
Darkts_plugin.cpp395 char* sendBuf = msgBuf.get(); in ClientSendReq() local
397 sendBuf[0] = 0x81; // 0x81: the text message sent by the server should start with '0x81'. in ClientSendReq()
402 sendBuf[1] = msgLen | (mask << 7); // 7: mask need shift left by 7 bits in ClientSendReq()
405sendBuf[1] = 126 | (mask << 7); // 126: payloadLen according to the spec; 7: mask shift left … in ClientSendReq()
406 sendBuf[2] = ((msgLen >> 8) & 0xff); // 8: shift right by 8 bits => res * (256^1) in ClientSendReq()
407 sendBuf[3] = (msgLen & 0xff); // 3: store len's data => res * (256^0) in ClientSendReq()
410sendBuf[1] = 127 | (mask << 7); // 127: payloadLen according to the spec; 7: mask shift left by… in ClientSendReq()
412 sendBuf[i] = 0; in ClientSendReq()
414 sendBuf[6] = ((msgLen & 0xff000000) >> 24); // 6: shift 24 bits => res * (256^3) in ClientSendReq()
415 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(const std::string &sendBuf) const;
/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.cpp63 int HdcTransferBase::SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes) in SimpleFileIO() argument
100 if (bytes > 0 && memcpy_s(ioContext->bufIO, bufMaxSize, sendBuf, bytes) != EOK) { in SimpleFileIO()
158 uint8_t *sendBuf = data - payloadPrefixReserve; in SendIOPayload() local
169 sendBuf = new uint8_t[sendBufSize](); in SendIOPayload()
170 if (!sendBuf) { in SendIOPayload()
174 … compressSize = LZ4_compress_default((const char *)data, (char *)sendBuf + payloadPrefixReserve, in SendIOPayload()
190 if (EOK != memcpy_s(sendBuf, sendBufSize, head.c_str(), head.size() + 1)) { in SendIOPayload()
193 ret = SendToAnother(commandData, sendBuf, payloadPrefixReserve + compressSize) > 0; in SendIOPayload()
197 delete[] sendBuf; in SendIOPayload()
Dtransfer.h133 int SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes);