public interface IProtocolHandler
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns the number of bytes which are ready to read without blocking by the next call
of read().
|
void |
close()
Closes the connection to the server and stops handling of protocol messages.
|
int |
read(byte[] a_buffer)
Read a_buffer.length bytes from the server in the buffer a_buffer.
|
void |
write(byte[] a_buffer)
Writes the bytes in a_buffer to the server or the protocol handler.
|
int available() throws java.lang.Exception
java.lang.Exception
int read(byte[] a_buffer) throws java.lang.Exception
a_buffer
- A buffer for the read bytes.java.lang.Exception
void write(byte[] a_buffer) throws java.lang.Exception
a_buffer
- A buffer with the bytes to write.java.lang.Exception
void close()
Copyright © 2023. All rights reserved.