We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5c66c commit 28f1c6bCopy full SHA for 28f1c6b
test_tuntap/test_tuntap.ml
@@ -10,7 +10,7 @@ let t_receivefd fd =
10
11
let t_sendfd fd =
12
let fd_to_send, iface_name = Tuntap.opentap () in
13
- let nb_sent = send_fd fd (Bytes.unsafe_of_string iface_name) 0 (String.length iface_name) [] fd_to_send in
+ let nb_sent = send_fd_substring fd iface_name 0 (String.length iface_name) [] fd_to_send in
14
Printf.printf "[sender] sent %d bytes [%s], sent fd = %d\n%!" nb_sent
15
(String.sub iface_name 0 nb_sent) (int_of_fd fd_to_send)
16
0 commit comments