|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClient
The client is the node in the network which can be controlled, it is you, the client. This interface allows basic control over the client. Be wise and responsible when using the force!
Clients must not implement.
EvolutionPlayerCore.getClient()
,
INetwork
Method Summary | |
---|---|
void |
connect(INetworkNode node)
Connect to the given node if possible. |
void |
connect(java.lang.String ip,
int port)
Connect to a node at the given address. |
void |
disconnect(INetworkNode node)
Disconnect from the given node. |
void |
getMediaDetails(IRemoteNetworkNode node,
MediaId[] medias)
Collect information about the given medias. |
INetwork |
getNetwork()
The network describing the network around this client |
IWritableScoreBoard |
getScoreBoard()
The score board for this node. |
boolean |
isConnected()
Is this client connected to any node? |
void |
scan(IRemoteNetworkNode node)
Collect information about the given node. |
Methods inherited from interface com.evolution.player.core.network.INetworkNode |
---|
getIp, getPort, getUUID |
Method Detail |
---|
boolean isConnected()
INetwork getNetwork()
void scan(IRemoteNetworkNode node) throws java.io.IOException
node
- the node to scan
java.io.IOException
- if the node could not be scannedvoid connect(INetworkNode node) throws java.net.UnknownHostException, java.io.IOException
node
- the node to connect to
java.net.UnknownHostException
- if the address is not valid
java.io.IOException
- if a connection could not be establishedvoid connect(java.lang.String ip, int port) throws java.net.UnknownHostException, java.io.IOException
ip
- the address of the node to connect toport
- the port on which the node is listening
java.net.UnknownHostException
- if the address is not valid
java.io.IOException
- if a connection could not be establishedvoid disconnect(INetworkNode node) throws java.io.IOException
node
- the node to disconnect from
java.io.IOException
- if disconnecting was not possiblevoid getMediaDetails(IRemoteNetworkNode node, MediaId[] medias) throws java.io.IOException, java.lang.IllegalArgumentException
node
- the node to ask for media detailsmedias
- the medias to retrieve details for
java.io.IOException
- if retrieving details was not possible
java.lang.IllegalArgumentException
- if the given node is not connected to the clientIWritableScoreBoard getScoreBoard()
INetworkNode
getScoreBoard
in interface INetworkNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |