dwrtc / ch.hsr.dsl.dwrtc.signaling / ClientService / <init>

<init>

ClientService(bootstrapPeerAddress: PeerAddress, peerPort: Int? = findFreePort())

Creates a peer and bootstraps with a given TomP2P Peer Address. Optionally, set the port this peer uses.

Parameters

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.

Parameters

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

Parameters

peerPort - the port this peer uses

Constructor
Creates a peer. Optionally, set the port this peer uses