mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
netty: check result of UDP sendto
This commit is contained in:
parent
26eb0ce794
commit
88a3fda36a
@ -76,6 +76,9 @@ void Netty::Udp::server(int const sd, bool const nonblock, bool const read_write
|
|||||||
}
|
}
|
||||||
|
|
||||||
count = sendto(sd, data, count, 0, pcaddr, scaddr);
|
count = sendto(sd, data, count, 0, pcaddr, scaddr);
|
||||||
|
if (count == -1)
|
||||||
|
Genode::error("sendto: errno=", errno,
|
||||||
|
" (", Genode::Cstring(strerror(errno)), ")");
|
||||||
|
|
||||||
Genode::log("echoed ", count, " bytes");
|
Genode::log("echoed ", count, " bytes");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user