pub fn new_local_init(
        stream: S,
        local_cid: u64,
        peer_cid: u64,
        local_port: u32,
        peer_port: u32,
    ) -> Self {
        Self {
            local_cid,
            peer_cid,
            local_port,
            peer_port,
            stream,
            state: ConnState::LocalInit,
            tx_buf: TxBuf::new(),
            fwd_cnt: Wrapping(0),
            peer_buf_alloc: 0,
            peer_fwd_cnt: Wrapping(0),
            rx_cnt: Wrapping(0),
            last_fwd_cnt_to_peer: Wrapping(0),
            pending_rx: PendingRxSet::from(PendingRx::Request),
            expiry: None,
        }
    }
/// Create a new host-initiated connection object.
Create a new host-initiated connection object.
Create a new host - initiated connection object .
pub fn new_local_init(
        stream: S,
        local_cid: u64,
        peer_cid: u64,
        local_port: u32,
        peer_port: u32,
    ) -> Self {
        Self {
            local_cid,
            peer_cid,
            local_port,
            peer_port,
            stream,
            state: ConnState::LocalInit,
            tx_buf: TxBuf::new(),
            fwd_cnt: Wrapping(0),
            peer_buf_alloc: 0,
            peer_fwd_cnt: Wrapping(0),
            rx_cnt: Wrapping(0),
            last_fwd_cnt_to_peer: Wrapping(0),
            pending_rx: PendingRxSet::from(PendingRx::Request),
            expiry: None,
        }
    }
pub fn new_local_init ( stream : S , local_cid : u64 , peer_cid : u64 , local_port : u32 , peer_port : u32 , ) -> Self { Self { local_cid , peer_cid , local_port , peer_port , stream , state : ConnState :: LocalInit , tx_buf : TxBuf :: new ( ) , fwd_cnt : Wrapping ( 0 ) , peer_buf_alloc : 0 , peer_fwd_cnt : Wrapping ( 0 ) , rx_cnt : Wrapping ( 0 ) , last_fwd_cnt_to_peer : Wrapping ( 0 ) , pending_rx : PendingRxSet :: from ( PendingRx :: Request ) , expiry : None , } }
Create a new host-initiated connection object.
Create a new host - initiated connection object .
stream
S
local_cid
u64
peer_cid
u64
local_port
u32
peer_port
u32
stream
S
local_cid
u64
peer_cid
u64
local_port
u32
peer_port
u32