javacommons/gcfprotocols/socket/socket/src.s60/socketlocalhostinfo.cpp
branchRCL_3
changeset 25 9ac0a0a7da70
parent 19 04becd199f91
child 48 e0d6e9bd3ca7
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
   121                 TInt err = sock.GetOpt(KSoInetIfQueryByName, KSolInetIfQuery,
   121                 TInt err = sock.GetOpt(KSoInetIfQueryByName, KSolInetIfQuery,
   122                                        ifQueryPkg);
   122                                        ifQueryPkg);
   123 
   123 
   124                 if ((err == KErrNone) && (ifQuery.iZone[1] == activeIapId))
   124                 if ((err == KErrNone) && (ifQuery.iZone[1] == activeIapId))
   125                 {
   125                 {
   126                     TUint32 t5 = (TUint32)(ifQuery.iZone[15]);
   126                     //TUint32 t5 = (TUint32)(ifQuery.iZone[15]);                    
   127                     ILOG2(ESOCKET, "Network id = %d, IAP id = %d ", t5,
   127                     ILOG2(ESOCKET, "Network id = %d, IAP id = %d ",(TUint32)(ifQuery.iZone[15]),(TUint32)ifQuery.iZone[1]);
   128                           ifQuery.iZone[1]);
   128                     
   129                     // IAP ID is index 1 of iZone
   129                     // IAP ID is index 1 of iZone
   130                     // We have found an interface using the IAP we are interested in.
   130                     // We have found an interface using the IAP we are interested in.
   131                     if (ifInfo.iAddress.Address() > 0)
   131                     if (ifInfo.iAddress.Address() > 0)
   132                         if (!ifInfo.iAddress.IsUnspecified()
   132                         if (!ifInfo.iAddress.IsUnspecified()
   133                                 && !ifInfo.iAddress.IsLoopback()
   133                                 && !ifInfo.iAddress.IsLoopback()