Function create_tcp_client_binding
Source pub async fn create_tcp_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,
use_session_pool: Option<usize>,
max_client_sessions: Option<usize>,
) -> 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,