public interface ClientCommunicationInterface extends SocketNameInterface
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Closes an open client connection.
|
InetAddress |
getClientInetAddress()
Gets the address of the client.
|
InetAddress |
getServerInetAddress()
Gets the address of the server.
|
ServerSocketInterface |
getServerSocket()
Gets the server socket interface associated with the accept of this socket.
|
ISocket |
getSocket()
Gets socket associated with this communication.
|
void |
hardClose()
Hard-closes an open client connection without flushing potential data.
|
byte[] |
receiveTransaction()
Reads a transaction from the client.
|
byte[] |
receiveTransaction(Object[] isCompressed)
Reads a transaction from the client.
|
void |
sendTransaction(byte[] data)
Sends a transaction to the client.
|
void |
sendTransaction(byte[] data,
int type)
Sends a transaction to the client.
|
getClientDNSName, getClientIPAddress
InetAddress getClientInetAddress()
InetAddress getServerInetAddress()
byte[] receiveTransaction() throws IOException
IOException
byte[] receiveTransaction(Object[] isCompressed) throws IOException
IOException
void sendTransaction(byte[] data) throws IOException
IOException
void sendTransaction(byte[] data, int type) throws IOException
IOException
boolean close()
void hardClose()
ISocket getSocket()
ServerSocketInterface getServerSocket()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.