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.Exceptionint read(byte[] a_buffer) throws java.lang.Exception
a_buffer - A buffer for the read bytes.java.lang.Exceptionvoid write(byte[] a_buffer)
throws java.lang.Exception
a_buffer - A buffer with the bytes to write.java.lang.Exceptionvoid close()
Copyright © 2023. All rights reserved.