use socket_send() instead of send()
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 442b6e0..1b57b69 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -1043,7 +1043,7 @@
 		return -EINVAL;
 	}
 	
-	num_sent = send(sfd, (void*)data, len, 0);
+	num_sent = socket_send(sfd, (void*)data, len);
 	if (num_sent < 0) {
 		*sent_bytes = 0;
 		num_sent = errno;