Struct ckb_network::network::NetworkService
source · pub struct NetworkService<T> { /* private fields */ }Expand description
Ckb network service, use to start p2p network
Implementations§
source§impl<T: ExitHandler> NetworkService<T>
impl<T: ExitHandler> NetworkService<T>
sourcepub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
identify_announce: (String, String, Flags),
exit_handler: T
) -> Self
pub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
identify_announce: (String, String, Flags),
exit_handler: T
) -> Self
init with all config