pub unsafe extern "C" fn nros_platform_tcp_open_within(
sock: *mut c_void,
endpoint: *const c_void,
timeout_ms: u32,
connect_timeout_ms: i32,
) -> i8Expand description
nros_platform_tcp_open whose connect gives up after
connect_timeout_ms. timeout_ms keeps its meaning in
nros_platform_tcp_open. A negative connect_timeout_ms states no bound:
the call then behaves exactly as nros_platform_tcp_open, connect limit
included. zenoh-pico passes what is left of a client’s connect budget
([knobs.zenoh.limits] connect_timeout_ms), so a peer that drops the SYN
ends the attempt at the budget instead of at the stack’s own SYN-retry
limit. A port that cannot bound its connect says so in its implementation
and keeps its own limit.