| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close the connection
|
abstract CompletableFuture<Boolean> |
connect()
Try to connect to the server
|
abstract Client |
debug(boolean status)
Set the client debug status
|
abstract String |
getMAC()
Get the client MAC address
|
abstract String |
getName()
Get the client name
|
abstract RemoteServer |
getServer()
Get the connected remote server
|
abstract WorkLevel |
getWorkLevel()
Get the client work level
|
abstract void |
rename(String name)
Rename the client on the server interface
|
abstract void |
send(byte[] data)
Send data to the server
|
public abstract Client debug(boolean status)
status - the client debug statuspublic abstract CompletableFuture<Boolean> connect()
public abstract String getName()
public abstract String getMAC()
public abstract RemoteServer getServer()
public abstract WorkLevel getWorkLevel()
public abstract void rename(String name)
name - the client namepublic abstract void send(byte[] data)
data - the data to sendpublic abstract void close()
Copyright © 2021. All rights reserved.