Closed serzhiio closed 1 year ago
With this changes we can set destination address. It is usefull when working with connectionless UDP, like .send_to().
.send_to()
let std = SocketAddrV6::new(Ipv6Addr::new(1, 2, 3, 4, 5, 6, 7, 8), 9876, 11, 12); let dest_addr = SockAddr::from(std); let sendzc = opcode::SendZc::new(Fd(self.as_raw_fd()), buf.as_ptr(), buf.len() as _) .dest_addr(dest_addr.as_ptr()) .dest_addr_len(dest_addr.len()) .build() .user_data(1);
test added
With IO_LINK flag i hope we can rely on consistency UPD: No, order is different from time to time, thinking...
Thank you!
With this changes we can set destination address. It is usefull when working with connectionless UDP, like
.send_to()
.