public final class TCPRemoteServer extends RemoteServer
| Constructor and Description |
|---|
TCPRemoteServer(String m,
InetAddress address,
int incoming_port,
SocketChannel client)
Initialize the remote server
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getHost()
Get the server address
|
String |
getMAC()
Get the server MAC address
|
int |
getPort()
Get the server port
|
boolean |
sendMessage(byte[] message)
Send a message to the server
|
toStringpublic TCPRemoteServer(String m, InetAddress address, int incoming_port, SocketChannel client)
m - the server MAC addressaddress - the server addressincoming_port - the server portclient - the client active socketpublic InetAddress getHost()
getHost in class RemoteServerpublic String getMAC()
getMAC in class RemoteServerpublic int getPort()
getPort in class RemoteServerpublic boolean sendMessage(byte[] message)
sendMessage in class RemoteServermessage - the message to sendCopyright © 2022. All rights reserved.