pub fn create_tcp(
origin: &Origin,
dst: &Address,
worker_id: u32,
is_symmetric: bool,
info_url: &str,
) -> Vec<u8> ⓘ
Expand description
Creates a TCP packet.
§Arguments
-
‘origin’ - the source address and port values we use for our probes
-
‘dst’ - the destination address for the TCP packet
-
‘worker_id’ - the unique worker ID of this worker
-
‘is_ipv6’ - whether we are using IPv6 or not
-
‘is_symmetric’ - whether we are measuring latency
-
‘info_url’ - URL to encode in packet payload (e.g., opt-out URL)
§Returns
A TCP packet (including the IP header) as a byte vector.