Series60 SDK and opening GPRS connection
What is the "recommended" way to open GPRS connection with Series60 SDK (N7650)? I have used RGenericAgent and it's StartOutgoing() member function. It opens the connection but I have encountered problems with how to be sure that connection is really up before making any network transactions. Can somebody share sample code how to make connection properly or give good places to look for more information?
RE: Series60 SDK and opening GPRS connection
As far as I know, the StartOutgoing method returns only when the connection "setup" is complete. It doesn't mean the connection is up. In order to make sure that you can use the connection, you have to monitor it with the ProgressNotification method (after StartOutgoing method returned) : when the progress buffer indicates that iStage == EIfProgressLinkUp, then the connection is set up.
Anyway, it gave us a headache as well, because we wanted to detemine our local IP address, which was not always possible after the StartOutgoing call completed. But, with this modification, we can always determine it.