File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,6 @@ impl Op<SendMsgZc, MultiCQEFuture> {
1818 pub ( crate ) fn sendmsg_zc ( fd : & SharedFd , msghdr : & libc:: msghdr ) -> io:: Result < Self > {
1919 use io_uring:: { opcode, types} ;
2020
21- /*let io_slices = vec![IoSlice::new(unsafe {
22- std::slice::from_raw_parts(buf.stable_ptr(), buf.bytes_init())
23- })];
24-
25- let socket_addr = Box::new(SockAddr::from(socket_addr));
26-
27- let mut msghdr: Box<libc::msghdr> = Box::new(unsafe { std::mem::zeroed() });
28- msghdr.msg_iov = io_slices.as_ptr() as *mut _;
29- msghdr.msg_iovlen = io_slices.len() as _;
30- msghdr.msg_name = socket_addr.as_ptr() as *mut libc::c_void;
31- msghdr.msg_namelen = socket_addr.len();*/
32-
3321 CONTEXT . with ( |x| {
3422 x. handle ( ) . expect ( "Not in a runtime context" ) . submit_op (
3523 SendMsgZc {
You can’t perform that action at this time.
0 commit comments