Skip to main content

create_udp_client_binding

Function create_udp_client_binding 

Source
pub async fn create_udp_client_binding<Chain, Graph, Net>(
    bind_host: SocketAddr,
    port_range: Option<String>,
    hopr: Arc<Hopr<Chain, Graph, Net>>,
    open_listeners: Arc<ListenerJoinHandles>,
    destination: Address,
    target_spec: SessionTargetSpec,
    config: HoprSessionClientConfig,
) -> Result<(SocketAddr, Option<SessionId>, usize), BindError>
where Chain: HoprChainApi + Clone + Send + Sync + 'static, Graph: NetworkGraphView<NodeId = OffchainPublicKey> + NetworkGraphUpdate + NetworkGraphWrite<NodeId = OffchainPublicKey> + NetworkGraphTraverse<NodeId = OffchainPublicKey> + Clone + Send + Sync + 'static, <Graph as NetworkGraphTraverse>::Observed: EdgeObservableRead + Send + 'static, <Graph as NetworkGraphWrite>::Observed: EdgeObservableWrite + Send, Net: NetworkView + NetworkStreamControl + Send + Sync + Clone + 'static,