On Wed, 10 Mar 2004, Tony Yat-Tung Cheung wrote:
I have enabled "Redirect SocketLib Calls to Host TCP/IP". I am able to go online using the "Internet Application" on the "Winsock Redirection". However, when I try some networking applications on it, it never succeed. I have tried WorldMate, PalmVNC...etc and my own code. It all fails to connect.
Was going to speak up about that after I got some other issues with Cobalt worked out, but yeah... problems happening here as well. In my case, I can connect with the "Winsock Redirection" active, but as soon as the initial connection traffic subsides, the program hangs for a couple seconds and then acts as if the server closed the connection. Same code works fine on every other emulator and simulator out there.
One thing that may be worth noting in my case, is that I'm using NetLibSelect (with the "stdio" descriptor added, to check for events as well) as the core of my event loop. If it indicates that there's something to read on the main socket, but a read returns 0 or an error, then it considers the connection closed by the server and closes it in the app. Seems like that's what's happening, but I can't explain the hanging that happens before that.
Yes. My codes are also doing the same with NetLibSelect() with the sysFileDescStdIn descriptor added. I have not run the debugger on it yet and I suspect it happens in the same way as you have described.
So, I am afraid many existing networking applications will no longer working in the current Palm Cobalt Simulator. I hope it would work in the real Cobalt devices, otherwise, it would cause lots of incompatibilities problems.
I hope PalmSource is reading this thread or we would have to submit some bug reports to them.
Thanks.
Tony Cheung
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
