equal
deleted
inserted
replaced
1583 { |
1583 { |
1584 // Take AP from open connection |
1584 // Take AP from open connection |
1585 RSocketServ socketServer; |
1585 RSocketServ socketServer; |
1586 TInt err( KErrNone ); |
1586 TInt err( KErrNone ); |
1587 err = socketServer.Connect(); |
1587 err = socketServer.Connect(); |
|
1588 if ( err == KErrNone) |
|
1589 { |
|
1590 CleanupClosePushL( socketServer ); |
1588 RConnection myConnection; |
1591 RConnection myConnection; |
1589 err = myConnection.Open( socketServer ); |
1592 err = myConnection.Open( socketServer ); |
|
1593 if ( err == KErrNone) |
|
1594 { |
|
1595 CleanupClosePushL( myConnection ); |
1590 TUint connectionCount( 0 ); |
1596 TUint connectionCount( 0 ); |
1591 err = myConnection.EnumerateConnections( connectionCount ); |
1597 err = myConnection.EnumerateConnections( connectionCount ); |
1592 DBG_FILE_CODE(connectionCount, _S8("CNSmlAgentBase::ReadAcessPointL(), The Connection count is:")); |
1598 DBG_FILE_CODE(connectionCount, _S8("CNSmlAgentBase::ReadAcessPointL(), The Connection count is:")); |
1593 if ( err != KErrNone || connectionCount < 1 ) |
1599 if ( err != KErrNone || connectionCount < 1 ) |
1594 { |
1600 { |
1619 } |
1625 } |
1620 else |
1626 else |
1621 { |
1627 { |
1622 iAllowAutoRestart = ETrue; |
1628 iAllowAutoRestart = ETrue; |
1623 } |
1629 } |
1624 } |
1630 } |
1625 |
1631 |
1626 myConnection.Close(); |
1632 CleanupStack::PopAndDestroy(); // myConnection |
1627 socketServer.Close(); |
1633 } |
|
1634 CleanupStack::PopAndDestroy(); // socketServer |
|
1635 } |
1628 } |
1636 } |
1629 //RD_AUTO_RESTART |
1637 //RD_AUTO_RESTART |
1630 |
1638 |
1631 // --------------------------------------------------------- |
1639 // --------------------------------------------------------- |
1632 // CNSmlAgentBase::SendDataIssueL() |
1640 // CNSmlAgentBase::SendDataIssueL() |