MCPcopy Create free account
hub / github.com/acl-dev/acl / udp_read

Function udp_read

lib_acl/samples/udp/udp.cpp:171–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171int udp_read(SOCK_UDP *sock, void *buf, size_t size)
172{
173 ssize_t ret;
174
175 sock->sa_peer_len = sizeof(sock->sa_peer);
176 ret = recvfrom(sock->fd, buf, size, 0,
177 (struct sockaddr *) &sock->sa_peer, &sock->sa_peer_len);
178 return ret;
179}
180
181int udp_send(SOCK_UDP *sock, const void *data, size_t len)
182{

Callers 2

sioFunction · 0.50
sioFunction · 0.50

Calls 1

recvfromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…