Skip to main content

NET_SOCKET_EOF

Constant NET_SOCKET_EOF 

Source
pub const NET_SOCKET_EOF: usize = _; // 18_446_744_073_709_551_614usize
Expand description

What a TCP read returns when the peer closed the stream (NROS_PLATFORM_NET_SOCKET_EOF): distinct from NET_SOCKET_ERROR and from 0, which means “nothing read yet”. A port returns it only when it knows the peer closed; zenoh-pico then closes the session and reconnects, where a 0 would leave it polling a dead socket forever.