ClientService(bootstrapPeerAddress: PeerAddress, peerPort: Int? = findFreePort())
Creates a peer and bootstraps with a given TomP2P Peer Address. Optionally, set the port this peer uses.
bootstrapPeerAddress
- the peer address to bootstrap with
peerPort
- the port this peer uses
ClientService(bootstrapPeers: List<PeerConnectionDetails>, peerPort: Int?)
Creates a peer and bootstraps with a given IP/port pair. Optionally, set the port this peer uses.
bootstrapPeers
- the list of PeerConnectionDetails to bootstrap with
peerPort
- the port this peer uses
ClientService(peerPort: Int? = findFreePort())
Creates a peer. Optionally, set the port this peer uses
peerPort
- the port this peer uses
Constructor
Creates a peer. Optionally, set the port this peer uses