Hi, everyone, I am new to palm network programming and want to use Http in INetLib. On a smartphone, I was able to post and get data from a web server. But I still run into some problems and hope you guys could help :
a) When I quit the application, I want to close all the socket and hangup the phone, but even if I call the following function: INetLibSockClose(libRefNum,socket); INetLibClose(libRefNum,INetHandle); the phone line is still on. Should I use the NetLib instead? I see Greg Winton suggestion setting the immediate to true to hangup the phone. b) Right now each time I connect to the server I will create a new socket and I only close the socket and library when I quit the application. When I try to click the connection three times in a roll, I will get the error message when I am calling the INetLibOpen function. Is it because the socket count limit is 4? c) When I connect the server using the INetLib function, sometimes I got the error message like PPP time out. Eventually I want to make the program retry several times in the kind of situation. Should I call INetLibSockStatus to find out the error? It seems that I could use NetLib function, but if you know I could still use the INet function to do all this, please give me some help. Thanks, Larry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
