base_scheduler/socket_protocol.rs
1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4/// An explicit IP transport protocol. Pass `None` to `socket_open` for the operating system default for the domain and type.
5#[derive(Clone, Copy, Debug, Eq, PartialEq)]
6pub enum SocketProtocol {
7 /// Transmission Control Protocol.
8 Tcp,
9 /// User Datagram Protocol.
10 Udp,
11 /// A platform-native protocol number, preserved by resolution and forwarded unchanged to socket creation.
12 Other(i32),
13}