pub enum TransportProtocol {
Unspecified,
Stream,
Datagram,
}
Expand description
Transport Protocol.
other values are unspecified and must not be emitted in version 2 of this protocol and must be rejected as invalid by receivers.
Variants§
Unspecified
0x0 : UNSPEC : the connection is forwarded for an unknown, unspecified or unsupported protocol. The sender should use this family when sending LOCAL commands or when dealing with unsupported protocol families. The receiver is free to accept the connection anyway and use the real endpoint addresses or to reject it. The receiver should ignore address information.
Stream
0x1 : STREAM : the forwarded connection uses a SOCK_STREAM protocol (eg: TCP or UNIX_STREAM). When used with AF_INET/AF_INET6 (TCP), the addresses are followed by the source and destination ports represented on 2 bytes each in network byte order.
Datagram
0x2 : DGRAM : the forwarded connection uses a SOCK_DGRAM protocol (eg: UDP or UNIX_DGRAM). When used with AF_INET/AF_INET6 (UDP), the addresses are followed by the source and destination ports represented on 2 bytes each in network byte order.
Trait Implementations§
Source§impl Clone for TransportProtocol
impl Clone for TransportProtocol
Source§fn clone(&self) -> TransportProtocol
fn clone(&self) -> TransportProtocol
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more