Socket data read question | developer.brewmp.com Socket data read question | developer.brewmp.com

Developer

Socket data read question

Forums:

How to get the numbers of bytes can be read before read the data?
I want to implement the method available() in InputStream in Java on brew, I cannot find the solution.

Thx!

Write a layer that sits between the client and ISocket which reads data from the socket when available() is called, and then buffers it for later use by a read() call.

Write a layer that sits between the client and ISocket which reads data from the socket when available() is called, and then buffers it for later use by a read() call.