ENVIRONMENT:
I am using a modified version of the socket example that ships with the Series 60 SDK. I am developing with the Series 60 SDK running on Windows XP Pro.
I have already set up the necessary virtual serial port vodoo to get the stock example sockets application to work successfully within the emulator. Consequently, I suspect my problem has something to do with a coding error not a configuration detail.
PROBLEM:
My problem is that the CSocketsReader's call to RSocket::RecvOneOrMore() is resulting in a status of -29 which upon inspection of e32std.h corresponds to KErrCommsLineFail. The documentation defines KErrCommsFail as "The communication line failed.".
Can anyone provide general guidance as to what I should be looking for to debug this problem? I suspect this error is due to a common Symbian beginner coding mistake.
FOLLOW UP DETAILS:
Further inspection reveals the following details:
When I connect to an IP address I don't encounter the KErrCommsLineFail TRequestStatus until I try reading from the socket with the RSocket::RecvOneOrMore() method. In this case I have no trouble initiating the connection just reading from it once connected.
When I connect to a domain name the name resolution using RHostResolver::GetByName completes just fine. In this case I receive the KErrCommsLineFail status upon trying to initiate the connection which is earlier than the case above.
In both cases you will notice it is the second time the socket APIs are used that I encounter a problem. The stock socket example runs fine on the emulator using a domain name as well as an IP address. Consequently I am reluctant to just blame the problem on the emulator.
THANKS:
Thanks for your time and effort spent reading this posting. Any guidance would be helpful.
Sincerely,
James Carpenter
Email: [email protected]
AOL IM: nawkboyrules