Home
last modified time | relevance | path

Searched refs:sendSize (Results 1 - 18 of 18) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/
H A Dsocket_util.cpp27 int sendSize = len; in SocketSendData() local
29 while (sendSize) { in SocketSendData()
30 ssize_t size = send(sockFd, buf, sendSize, 0); in SocketSendData()
34 if (size > sendSize) { in SocketSendData()
38 sendSize -= size; in SocketSendData()
51 int sendSize = len; in SocketSendFd() local
82 sendSize = -1; in SocketSendFd()
91 return sendSize; in SocketSendFd()
/foundation/communication/ipc/ipc/native/test/fuzztest/core/bufferobject_fuzzer/
H A Dbufferobject_fuzzer.cpp31 uint32_t sendSize = *(reinterpret_cast<const uint32_t*>(data)); in GetSendBufferAndLockTest() local
32 char *sendBuffer = object.GetSendBufferAndLock(sendSize); in GetSendBufferAndLockTest()
46 uint32_t sendSize = *(reinterpret_cast<const uint32_t*>(data)); in GetReceiveBufferAndLockTest() local
47 char *sendBuffer = object.GetReceiveBufferAndLock(sendSize); in GetReceiveBufferAndLockTest()
176 uint32_t sendSize = *(reinterpret_cast<const uint32_t*>(data)); in GetNeedBufferSizeTest() local
177 uint32_t ret = object.GetNeedBufferSize(sendSize); in GetNeedBufferSizeTest()
226 uint32_t sendSize = *(reinterpret_cast<const uint32_t*>(data)); in UpdateSendBufferTest() local
227 object.UpdateSendBuffer(sendSize); in UpdateSendBufferTest()
/foundation/graphic/graphic_2d/utils/socketpair/export/
H A Dlocal_socketpair.h30 int32_t CreateChannel(size_t sendSize, size_t receiveSize);
51 int32_t SetSockopt(size_t sendSize, size_t receiveSize, int32_t* socketPair, int32_t socketPairSize);
/foundation/graphic/graphic_2d/utils/socketpair/src/
H A Dlocal_socketpair.cpp60 int32_t LocalSocketPair::SetSockopt(size_t sendSize, size_t receiveSize, int32_t* socketPair, int32_t socketPairSize) in SetSockopt() argument
63 int32_t ret = setsockopt(socketPair[i], SOL_SOCKET, SO_SNDBUF, &sendSize, sizeof(sendSize)); in SetSockopt()
88 int32_t LocalSocketPair::CreateChannel(size_t sendSize, size_t receiveSize) in CreateChannel() argument
114 int32_t ret = SetSockopt(sendSize, receiveSize, socketPair, SOCKET_PAIR_SIZE); in CreateChannel()
/foundation/communication/ipc/ipc/native/src/mock/include/
H A Ddbinder_base_invoker_object.h302 uint32_t sendSize = transData->sizeOfSelf; in MoveTransData2Buffer() local
303 char *sendBuffer = sessionBuff->GetSendBufferAndLock(sendSize); in MoveTransData2Buffer()
310 sessionBuff->UpdateSendBuffer(sendSize); in MoveTransData2Buffer()
314 sendSize > sessionBuff->GetSendBufferSize() - static_cast<uint32_t>(writeCursor)) { in MoveTransData2Buffer()
317 sendSize:%{public}u bufferSize:%{public}u", in MoveTransData2Buffer()
318 writeCursor, readCursor, sendSize, sessionBuff->GetSendBufferSize()); in MoveTransData2Buffer()
321 if (memcpy_s(sendBuffer + writeCursor, sendSize, transData.get(), sendSize)) { in MoveTransData2Buffer()
323 ZLOGE(LOG_LABEL, "fail to copy from tr to sendBuffer, parcelSize:%{public}u", sendSize); in MoveTransData2Buffer()
327 writeCursor += static_cast<ssize_t>(sendSize); in MoveTransData2Buffer()
[all...]
H A Ddbinder_base_invoker_process.h212 uint32_t sendSize = ((data.GetDataSize() > 0) ? data.GetDataSize() : sizeof(binder_size_t)) + in ProcessNormalData() local
217 transData.reset(reinterpret_cast<dbinder_transaction_data *>(::operator new(sendSize))); in ProcessNormalData()
219 ZLOGE(LOG_LABEL, "new buffer failed of length:%{public}u", sendSize); in ProcessNormalData()
222 ConstructTransData(data, *transData, sendSize, seqNum, cmd, code, flags); in ProcessNormalData()
/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/server_demo/
H A Dfile_server_demo.cpp224 int32_t sendSize = std::min(BUFFER_LNE, size); in FileReadFunc() local
225 std::vector<uint8_t> fileBuff(sendSize); in FileReadFunc()
226 ret = read(fileFd, fileBuff.data(), sendSize); in FileReadFunc()
229 ret = send(connFd, fileBuff.data(), std::min(ret, sendSize), MSG_NOSIGNAL); in FileReadFunc()
/foundation/multimedia/av_codec/test/unittest/common/
H A Dhttp_server_demo.cpp234 int32_t sendSize = std::min(BUFFER_LNE, size); in FileReadFunc() local
235 std::vector<uint8_t> fileBuff(sendSize); in FileReadFunc()
236 ret = read(fileFd, fileBuff.data(), sendSize); in FileReadFunc()
239 ret = send(connFd, fileBuff.data(), std::min(ret, sendSize), MSG_NOSIGNAL); in FileReadFunc()
/foundation/CastEngine/castengine_wifi_display/tests/demo/network/
H A Dnetwork_server_demo.cpp114 int sendSize = buf->Size(); variable
115 sessionStr->Send(std::move(buf), sendSize); variable
/foundation/communication/netstack/frameworks/cj/http/include/
H A Dffi_structs.h112 uint32_t sendSize; member
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_utils.cpp756 off_t sendSize = fileSize - offset; in CopyFile() local
757 if (sendSize > sendSize1G) { in CopyFile()
758 sendSize = sendSize1G; in CopyFile()
760 if (sendfile(wfd, rfd, &offset, sendSize) != sendSize) { in CopyFile()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/dfx/
H A Ddfx_types.h155 int sendSize; member
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/src/
H A Dhiview_adapter.cpp310 it->second.val.sendSize += stat.sendSize; in ReportTrafficStatistic()
340 .v = { .i64 = static_cast<int64_t>(kv.second.val.sendSize) }, in InvokeTraffic()
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dlocal_socket_exec.cpp295 size_t sendSize = (sockType == SOCK_STREAM ? leftSize : std::min<size_t>(leftSize, bufferSize)); in PollSendData() local
296 auto sendLen = sendto(sock, curPos, sendSize, 0, addr, addrLen); in PollSendData()
462 uint32_t sendSize = DEFAULT_BUFFER_SIZE; in SetSocketDefaultBufferSize() local
464 sendSize = mgr->extraOptions_.GetSendBufferSize(); in SetSocketDefaultBufferSize()
466 SetSocketBufferSize(sockfd, SO_SNDBUF, sendSize); in SetSocketDefaultBufferSize()
H A Dsocket_exec.cpp570 size_t sendSize = (sockType == SOCK_STREAM ? leftSize : std::min<size_t>(leftSize, bufferSize)); in PollSendData() local
571 auto sendLen = sendto(sock, curPos, sendSize, 0, addr, addrLen); in PollSendData()
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dtls_socket.cpp1247 bool TLSSocket::TLSSocketInternal::PollSend(int sockfd, ssl_st *ssl, const char *pdata, int sendSize) in PollSend() argument
1253 while (sendSize > 0) { in PollSend()
1270 size_t curSendSize = std::min<size_t>(sendSize, bufferSize); in PollSend()
1282 NETSTACK_LOGI("send len is 0, should have sent len is %{public}d", sendSize); in PollSend()
1286 sendSize -= len; in PollSend()
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/
H A Dtls_socket.h563 bool PollSend(int sockfd, ssl_st *ssl, const char *pdata, int sendSize);
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_client_exec.cpp935 CDataSendProgressInfo info = {.sendSize = ulLen.nLen, .totalSize = ulLen.tLen}; in ProgressCallback()

Completed in 20 milliseconds