Lines Matching refs:buf
50 char buf[bufSize] = { 0 }; in ~SocketContext() local
51 strerror_r(errno, buf, bufSize); in ~SocketContext()
52 HILOG_ERROR(LOG_CORE, "shutdown socket err = %d %s", errno, buf); in ~SocketContext()
57 char buf[bufSize] = { 0 }; in ~SocketContext() local
58 strerror_r(errno, buf, bufSize); in ~SocketContext()
59 HILOG_ERROR(LOG_CORE, "close socket err = %d %s", errno, buf); in ~SocketContext()
69 int SocketContext::RawProtocolProc(uint32_t pnum, const int8_t* buf, const uint32_t size) in RawProtocolProc() argument
103 std::vector<unsigned char> buf(bufferSize); in UnixSocketRecv() local
105 struct ProtocolHead* pph = (struct ProtocolHead*)buf.data(); in UnixSocketRecv()
110 if (!ReceiveData(pssr->socketHandle_, buf.data(), head_size)) { in UnixSocketRecv()
120 buf.resize(bufferSize); in UnixSocketRecv()
121 pph = (struct ProtocolHead*)buf.data(); in UnixSocketRecv()
124 if (!ReceiveData(pssr->socketHandle_, buf.data() + head_size, pph->protoSize - head_size)) { in UnixSocketRecv()
207 char buf[CMSG_SPACE(1 * sizeof(int))], data; in SendFileDescriptor() local
208 if (memset_s(buf, sizeof(buf), 0, sizeof(buf)) != EOK) { in SendFileDescriptor()
214 msg.msg_control = buf; in SendFileDescriptor()
215 msg.msg_controllen = sizeof(buf); in SendFileDescriptor()
232 char buf[CMSG_SPACE(1 * sizeof(int))], data; in ReceiveFileDiscriptor() local
236 msg.msg_control = buf; in ReceiveFileDiscriptor()
237 msg.msg_controllen = sizeof(buf); in ReceiveFileDiscriptor()