The implementation of
handle_read_complete(String mdata)
in my opinion, is really bad for a framework. Since it reads from ByteBuffers, it should return that ByteBuffer, and in the server implementation we handle and convert it to String or whatever we want.
I had to modify that code so I could read bytes[], because I'm not using the HTTP protocol, but a low level protocol.
Since it's a framework, it's usage should be a little bit more extendable. You should really consider using this.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The implementation of
handle_read_complete(String mdata)
in my opinion, is really bad for a framework. Since it reads from ByteBuffers, it should return that ByteBuffer, and in the server implementation we handle and convert it to String or whatever we want.
I had to modify that code so I could read bytes[], because I'm not using the HTTP protocol, but a low level protocol.
Since it's a framework, it's usage should be a little bit more extendable. You should really consider using this.
Thanks!
actually this only applies to jniosocket1