cassis.vo
public class VoCassis extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to the samp hub.
|
void |
createHub()
Create a samp hub if there is not one already.
|
void |
disconnect()
Disconnect for the hub.
|
static VoCassis |
getInstance() |
java.util.Map<java.lang.String,java.lang.String> |
getVoTableClients()
Send a Map of the clients who can read votable files.
|
boolean |
sendCurrentVoTable(java.io.File file,
java.lang.String clientId)
Send a file votable file to a client through the samp protocol.
|
void |
setDisconnected()
Set the state of connection to disconnected (without disconnecting,
in that cas use disconnect).
|
public static VoCassis getInstance()
public void connect()
public boolean sendCurrentVoTable(java.io.File file,
java.lang.String clientId)
file - the file to send.clientId - the id of the client ("All" or null for a broadcast)public void disconnect()
public void setDisconnected()
public void createHub()
public java.util.Map<java.lang.String,java.lang.String> getVoTableClients()