public abstract class PeersClient extends Object
| Constructor | Description |
|---|---|
PeersClient(String myId,
DataReceiver dataReceiver) |
creates a new peers client
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract TCPTransport |
createTCPTransport(String peerId) |
creates a TCP connection to a peer.
|
abstract UDPTransport |
createUDPTransport(String peerId) |
creates a UDP connection to a peer.
|
public PeersClient(String myId, DataReceiver dataReceiver)
myId - the string identifier corresponding
to the computer or to a person (email).dataReceiver - object that will receive incoming traffic.public abstract UDPTransport createUDPTransport(String peerId)
peerId - unique peer identifier (email for example).public abstract TCPTransport createTCPTransport(String peerId)
peerId - unique peer identifier (email for example).Copyright © 2018. All rights reserved.