Skip to content

Display and control your Android device

Use net_send() from net_send_all()

Romain Vimont3eac212af120
diff --git a/app/src/util/net.c b/app/src/util/net.c
index eb98ea59..678d6e67 100644
--- a/app/src/util/net.c
+++ b/app/src/util/net.c
@@ -137,7 +137,7 @@ ssize_t
net_send_all(sc_socket socket, const void *buf, size_t len) {
size_t copied = 0;
while (len > 0) {
- ssize_t w = send(socket, buf, len, 0);
+ ssize_t w = net_send(socket, buf, len);
if (w == -1) {
return copied ? (ssize_t) copied : -1;
}