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. |
default boolean | isUsingWebSocket()Checks if the connection is done over WebSocket. |
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, getClientIPAddressInetAddress getClientInetAddress()
InetAddress getServerInetAddress()
byte[] receiveTransaction()
throws IOExceptionIOExceptionbyte[] receiveTransaction(Object[] isCompressed) throws IOException
IOExceptionvoid sendTransaction(byte[] data)
throws IOExceptionIOExceptionvoid sendTransaction(byte[] data,
int type)
throws IOExceptionIOExceptionboolean close()
void hardClose()
ISocket getSocket()
ServerSocketInterface getServerSocket()
default boolean isUsingWebSocket()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.