pub fn connect_with_dcid_and_buffer_factory<F: BufFactory>(
server_name: Option<&str>,
scid: &ConnectionId<'_>,
dcid: &ConnectionId<'_>,
local: SocketAddr,
peer: SocketAddr,
config: &mut Config,
) -> Result<Connection<F>>Available on crate feature
custom-client-dcid only.Expand description
Creates a new client-side connection, with a custom buffer generation
method using the given dcid initially.
Be aware the RFC places requirements for unpredictability and length
on the client DCID field.
[RFC9000]: https://datatracker.ietf.org/doc/html/rfc9000#section-7.2-3
The buffers generated can be anything that can be drereferenced as a byte
slice. See connect and BufFactory for more info.