I have a problem in receiving data using RSocket base on RFCOMM,
I am using RecvOneOrMore() to read data, but I want to know the ending of receiving a package.
Doc said that:
TRequestStatus &aStatus On completion, KErrNone if successful, otherwise one of the system wide error codes. Note that KErrEof indicates either that a remote connection is closed, and that no more data is available for reading, or the socket has been shutdown with option RSocket::EStopInput.
but even no data available to read, I call RecvOneOrMore(), the aStatus is -2147483647 , NOT KErrEof.
how can I know the receiving is ending with out judge data received.