Home
last modified time | relevance | path

Searched refs:bytesReceived (Results 1 – 25 of 25) sorted by relevance

/haiku/src/kits/network/libnetapi/
H A DDatagramSocket.cpp109 ssize_t bytesReceived = recvfrom(fSocket, buffer, bufferSize, 0, in ReceiveFrom() local
111 if (bytesReceived < 0) in ReceiveFrom()
114 return bytesReceived; in ReceiveFrom()
124 ssize_t bytesReceived = recv(Socket(), buffer, size, 0); in Read() local
125 if (bytesReceived < 0) { in Read()
130 return bytesReceived; in Read()
H A DNetEndpoint.cpp517 ssize_t bytesReceived = recv(fSocket, buffer, length, flags); in Receive() local
518 if (bytesReceived < 0) in Receive()
521 return bytesReceived; in Receive()
529 ssize_t bytesReceived = Receive(chunk.Data(), length, flags); in Receive() local
530 if (bytesReceived > 0) in Receive()
531 buffer.AppendData(chunk.Data(), bytesReceived); in Receive()
532 return bytesReceived; in Receive()
549 ssize_t bytesReceived = recvfrom(fSocket, buffer, length, flags, in ReceiveFrom() local
551 if (bytesReceived < 0) in ReceiveFrom()
556 return bytesReceived; in ReceiveFrom()
[all …]
H A DSocket.cpp84 ssize_t bytesReceived = recv(Socket(), buffer, size, 0); in Read() local
85 if (bytesReceived < 0) { in Read()
90 return bytesReceived; in Read()
/haiku/src/system/boot/loader/net/
H A DEthernet.cpp182 ssize_t bytesReceived = fInterface->Receive(fReceiveBuffer, in ProcessIncomingPackets() local
184 if (bytesReceived < 0) in ProcessIncomingPackets()
188 if (bytesReceived in ProcessIncomingPackets()
190 || bytesReceived in ProcessIncomingPackets()
205 bytesReceived - (ssize_t)sizeof(ether_header))); in ProcessIncomingPackets()
214 bytesReceived - sizeof(ether_header)); in ProcessIncomingPackets()
/haiku/src/tests/system/network/
H A Dudp_connect.cpp71 ssize_t bytesReceived = recv(fd, buffer, sizeof(buffer), 0); in main() local
72 if (bytesReceived > 0) { in main()
73 buffer[bytesReceived] = 0; in main()
/haiku/src/kits/network/libnetservices/
H A DUrlProtocolAsynchronousListener.cpp116 off_t bytesReceived; in MessageReceived() local
118 message->FindInt64("url:bytesReceived", &bytesReceived); in MessageReceived()
121 DownloadProgress(caller, bytesReceived, bytesTotal); in MessageReceived()
H A DUrlSynchronousRequest.cpp93 off_t bytesReceived, off_t bytesTotal) in DownloadProgress() argument
96 ")\n", bytesReceived, bytesTotal)); in DownloadProgress()
H A DUrlProtocolDispatchingListener.cpp94 off_t bytesReceived, off_t bytesTotal) in DownloadProgress() argument
97 message.AddInt64("url:bytesReceived", bytesReceived); in DownloadProgress()
H A DHttpRequest.cpp607 off_t bytesReceived = 0; in _MakeRequest() local
634 if (bytesTotal > 0 && bytesReceived != bytesTotal) { in _MakeRequest()
796 bytesReceived += bytesRead; in _MakeRequest()
830 fListener->DownloadProgress(this, bytesReceived, in _MakeRequest()
833 if (bytesTotal >= 0 && bytesReceived >= bytesTotal) in _MakeRequest()
/haiku/src/kits/package/
H A DFetchFileJob.cpp143 FetchFileJob::DownloadProgress(BUrlRequest*, off_t bytesReceived, in DownloadProgress() argument
147 fBytes = bytesReceived; in DownloadProgress()
149 fDownloadProgress = (float)bytesReceived/bytesTotal; in DownloadProgress()
H A DFetchFileJob.h55 off_t bytesReceived, off_t bytesTotal);
/haiku/src/system/libnetwork/
H A Dsocket.cpp261 ssize_t bytesReceived = _kern_recvfrom(socket, data, length, flags, in recvfrom() local
266 if (bytesReceived < 0) { in recvfrom()
267 errno = bytesReceived; in recvfrom()
278 return bytesReceived; in recvfrom()
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/
H A DRemoteDisk.cpp423 ssize_t bytesReceived = recvfrom(fSocket, receiveBuffer, in _SendRequest() local
426 if (bytesReceived < 0) { in _SendRequest()
438 if (bytesReceived >= (ssize_t)sizeof(remote_disk_header)) { in _SendRequest()
442 *_bytesReceived = bytesReceived; in _SendRequest()
H A DRemoteDisk.h55 int32* bytesReceived);
/haiku/headers/private/netservices/
H A DUrlSynchronousRequest.h36 off_t bytesReceived, off_t bytesTotal);
H A DUrlProtocolListener.h46 off_t bytesReceived, off_t bytesTotal);
H A DUrlProtocolDispatchingListener.h57 off_t bytesReceived, off_t bytesTotal);
/haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/
H A DPOP3.cpp737 int32 bytesReceived; in ReceiveLine() local
740 bytesReceived = fServerConnection->Read((char*)&c, 1); in ReceiveLine()
741 if (bytesReceived < 0) in ReceiveLine()
742 return bytesReceived; in ReceiveLine()
744 if (c == '\n' || bytesReceived == 0) in ReceiveLine()
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/
H A DPPPControl.h247 int64 bytesReceived, packetsReceived; member
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_socket.cpp1193 const size_t bytesReceived = buffer->size; in socket_receive() local
1196 size_t toRead = min_c(bytesReceived, length); in socket_receive()
1211 for (int i = 1; i < header->msg_iovlen && bytesCopied < bytesReceived; i++) { in socket_receive()
1213 toRead = min_c(bytesReceived - bytesCopied, vec.iov_len); in socket_receive()
1230 if (bytesCopied < bytesReceived) { in socket_receive()
1235 return bytesReceived; in socket_receive()
/haiku/src/bin/network/ppp_up/
H A DPPPStatusView.cpp165 text << statistics.bytesReceived << ' ' << kTextBytes; in Pulse()
/haiku/src/servers/net/
H A DDHCPClient.cpp740 ssize_t bytesReceived = recvfrom(socket, buffer, sizeof(buffer), in _StateTransition() local
742 if (bytesReceived < 0 && errno == B_TIMED_OUT) { in _StateTransition()
748 } else if (bytesReceived < 0) in _StateTransition()
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp471 ssize_t bytesReceived = buffer->size; in socket_recv() local
472 gNetBufferModule.read(buffer, 0, data, bytesReceived); in socket_recv()
475 return bytesReceived; in socket_recv()
/haiku/src/apps/haikudepot/server/
H A DWebAppInterface.cpp70 virtual void DownloadProgress(BUrlRequest* caller, off_t bytesReceived, off_t bytesTotal) in DownloadProgress() argument
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPInterface.cpp1802 atomic_add64(&fStatistics.bytesReceived, length); in ReceiveFromDevice()