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(byte[] message)
Send a message to the client
|
public 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(byte[] message)
sendMessage in class RemoteClientmessage - the message to sendCopyright © 2021. All rights reserved.