pub fn send_to(
socket: &UdpSocket,
buf: &[u8],
send_info: &SendInfo,
segment_size: usize,
pacing: bool,
enable_gso: bool,
) -> Result<usize>
Expand description
A wrapper function of send_to().
When GSO and SO_TXTIME are enabled, send packets using send_to_gso(). Otherwise, send packets using socket.send_to().