public final class TCPRemoteClient extends RemoteClient
| Constructor and Description |
|---|
TCPRemoteClient(String client,
String m,
InetAddress address,
int incoming_port,
SocketChannel server)
Initialize the remote client
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getHost()
Get the client address
|
String |
getMAC()
Get the client MAC address
|
String |
getName()
Get the client name
|
int |
getPort()
Get the client port
|
boolean |
sendMessage(MessageOutput message)
Send a message to the client
|
toStringpublic TCPRemoteClient(String client, String m, InetAddress address, int incoming_port, SocketChannel server)
client - the client namem - the client MAC addressaddress - the client addressincoming_port - the client portserver - the server active socketpublic String getName()
getName in class RemoteClientpublic String getMAC()
getMAC in class RemoteClientpublic InetAddress getHost()
getHost in class RemoteClientpublic int getPort()
getPort in class RemoteClientpublic boolean sendMessage(MessageOutput message)
sendMessage in class RemoteClientmessage - the message to sendCopyright © 2022. All rights reserved.