Struct srt_protocol::options::Connect
source[−]pub struct Connect {
pub local: SocketAddr,
pub timeout: Duration,
pub min_version: SrtVersion,
pub udp_recv_buffer_size: ByteCount,
pub udp_send_buffer_size: ByteCount,
pub ip_ttl: u8,
pub linger: Option<Duration>,
}
Fields
local: SocketAddr
timeout: Duration
Connect timeout. This option applies to the caller and rendezvous connection modes. For the rendezvous mode (see SRTO_RENDEZVOUS) the effective connection timeout will be 10 times the value set with SRTO_CONNTIMEO.
Default is 3 seconds.
min_version: SrtVersion
SRTO_MINVERSION The minimum SRT version that is required from the peer. A connection to a peer that does not satisfy the minimum version requirement will be rejected. See SRTO_VERSION for the version format.
The default value is 0x010000 (SRT v1.0.0).
udp_recv_buffer_size: ByteCount
SRTO_UDP_RCVBUF
UDP Socket Receive Buffer Size. Configured in bytes, maintained in packets based on MSS value. Receive buffer must not be greater than FC size.
Default is 64k
udp_send_buffer_size: ByteCount
SRT_UDP_SNDBUF
UDP Socket Send Buffer Size. Configured in bytes, maintained in packets based on SRTO_MSS value.
Default is 64k
ip_ttl: u8
SRTO_IPTTL
IPv4 Time To Live (see IP_TTL option for IP) or IPv6 unicast hops (see IPV6_UNICAST_HOPS for IPv6) depending on socket address family. Applies to sender only.
When getting, the returned value is the user preset for non-connected sockets and the actual value for connected sockets. Sender: user configurable, default: 64
linger: Option<Duration>
Linger time on close (see SO_LINGER). Set to None to disable linger
Default is 180s
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Connect
impl UnwindSafe for Connect
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.