Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acl-dev/acl
/ recv
Method
recv
lib_acl_cpp/samples/udp/server/udp_sock.cpp:141–146 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
139
}
140
141
ssize_t udp_sock::recv(void *buf, size_t size)
142
{
143
sa_peer_len_ = sizeof(sa_peer_);
144
return recvfrom(fd_, buf, size, 0,
145
(struct sockaddr *) &sa_peer_, &sa_peer_len_);
146
}
147
148
int udp_sock::send(udp_pkts& pkts)
149
{
Callers
1
mio
Function · 0.80
Calls
7
recvmmsg
Function · 0.85
set_npkt
Method · 0.80
begin
Method · 0.80
recvfrom
Function · 0.50
recv
Function · 0.50
size
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected