I have a custom built server to which i am uploading & downloading some data.For this i have used the TCP/IP Socket connection.I have used the RSocketServ & RSocket classes to establish connection & to upload or download data.This class which establishes the connection to the server is implemented as an active object.When i call the function RSocket::Connect() i get the internet access point selection dialog.
My issue is that i want to hide this access point and programaticaly select the GPRS access point.
From the forum i understand that we can use the following options to resolve this
a) use the CInternetConnectionInitiator class
b) use the RGenericAgent Class
c) use the Preference Table in the Comms Database to set my preference.
Option a) is a totally different implementation from mine.So if i have to use this then i will have to redo that connection part.Besides by the use of this implemenation will i be able connect to my custom server with the use my custom protocol.Otherwise this change would require that i change my server program itself.
Option b) is the next feasible solution but i couldnot find any implemenation in the forum which tells me how i can use the RGeneric agent to connect.I understand that the RGenericAgent class is used to dial instead of NetDial of 6.0.Could anybody help me in giving code as to how to make use of RGenericAgent.Some Sample code integrated with Sockets Program in samples of series 60 would be useful.
Option C) is what i have been trying out.But this did not work out since any attempt to insert or update a record in this table always gave me a system wide error such as Unknown object,Access denied etc.If anybody has made use of this table the code that u have tried out would be very helpful.
If any body can send me some peice of code this would be of great help to me.This issue has become so critical.Please help.