Struct ckb_network::network::NetworkService [−][src]
pub struct NetworkService<T> { /* fields omitted */ }Expand description
Ckb network service, use to start p2p network
Implementations
pub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
name: String,
version: String,
exit_handler: T
) -> Self
pub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
name: String,
version: String,
exit_handler: T
) -> Self
init with all config