Guilack1

Results 11 comments of Guilack1

Since Android 8.1, it seems unwrap method is returning an EOFException "read error" instead of the result "BUFFER_OVERFLOW" when your application buffer is too small. How can we deal with...

Yes, I found a solution. The problem is the BUFFER_OVERFLOW in the unwrap method because in 8.1.0 it throws an EOFException. So, now, I simply check first the remaining space...

Simply call "buffer.remaining()" method before call "buffer.unwrap()". If the remaining method returns 0, just reallocate your buffer and then call unwrap method ________________________________ De : msameera96 Envoyé : vendredi 5...

Yes, just before calling 'unwrap' method. You just need to be sure there is some space in your buffer ________________________________ De : Mike Envoyé : vendredi 5 octobre 2018 21:04...

Please, show me more of you code because I don't see enough and there is probably a mistake somewhere. In your example (readBuf.remaining() == 0) is always false because you...

if(_bufferAppRead.remaining() == 0) { ByteBuffer tmp = _bufferAppRead; _bufferAppRead = ByteBuffer.allocate(tmp.capacity() * 2); tmp.flip(); _bufferAppRead.put(tmp); } result = _engine.unwrap(_bufferNetRead, _bufferAppRead); ________________________________ De : msameera96 Envoyé : vendredi 5 octobre 2018...

Here is an example. _bufferNetRead is where are received ciphered data from your socket _bufferAppRead is the buffer destination for you deciphered data (after unwrap) if(_bufferAppRead.remaining() == 0) { ByteBuffer...

I don't understand your request? I'm not responsible for the library, I'm just a developer (like you) who use it. I've sent you the way I use the library to...

I don't know what looks like your code but you just have to check if the remaining() method of your buffer is not equals to '0' before calling the unwrap()...

I don't patch the library (I can't do that) Just do it in your code where you call the 'unwrap' method Télécharger Outlook pour Android ________________________________ From: msameera96 Sent: Tuesday,...