How can I close all the existing network connection created by other applictions.
I know the s60 will close them when the user long press the red key on idle desktop.
How to do it by program?
How can I close all the existing network connection created by other applictions.
I know the s60 will close them when the user long press the red key on idle desktop.
How to do it by program?
RConnection can do that for you. Enumerate, attach and stop one by one.
when i attach ,there will report -34
what can i do to save this problem?
my code:
TBool connected(EFalse);TConnectionInfoBuf connInfo;TUint count;if ( connection.EnumerateConnections(count) == KErrNone ) { for (TUint i=1; i<=count; i++) { // Note: GetConnectionInfo expects 1-based index if ( connection.GetConnectionInfo( i, connInfo ) == KErrNone ) { if ( connInfo().iIapId == selectedIap ) { if ( connection.Attach(connInfo, RConnection::EAttachTypeNormal) == KErrNone ) { connected = ETrue; break; } } } } }