if(iBuffer.Length() != iLen()) // i use this to chk but it is correct in my code
but after this function, i has another read() function behind and it will still keep receive some of the code. So, it show that my jpeg file is nt fully received by the previous RecvOneOrMore. if i send a smaller file, the read() function behind wont get data after that.
so i guess maybe RecvOneOrMore function has limited size. Anyone can help to solve my problem?
Or I shall use read() instead of RecvOneOrMore?
p/s: series 60 symbian os 7s, n6600 and n6260
Transfer .sis file using Bluetooth
!! Read will not read until the end of the buffer. The documentation says so, but it is just not true !!
I would do RecOneOrMore with temp buffer Tbuf8<512> and append that data to target buffer. I do not think it is possible to append using RecOneOrMore. I zero the buffer before reading, but this is most likely overkill.
You can ALSO use HBuf* if you wish to have dynamic length. (there may be other ways too, but one working is enough for me).
RecOnOrMore ==KErrEof means that the socket is closed.
All information above is based on XP with TCP sockets, connected BT sockets may have diffe