×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    476

    Strange issue with TSoInetInterfaceInfo

    Hello

    I've programmed an application to retrieve some information about my WLAN connection using "TSoInetInterfaceInfo".

    Now I've a strange issue with the code (snippet only!) below while being connected to my WLAN:
    1) I get the correct IP of my phone and the two nameserver IP's of my WWW provider. But I don't get the Netmask, Broadcast and default gateway IP's
    2) If I run the application on the emulator of my PC (also connected to my WLAN) I get the IP and the netmask, but not the rest of the IP addresses...

    Has someone an idea what could be wrong here?? Thank you very much!!

    Code:
    TSoInetInterfaceInfo networkInfo;
    TPckg<TSoInetInterfaceInfo> opt(networkInfo);
    User::LeaveIfError(socket.SetOpt(KSoInetEnumInterfaces, KSolInetIfCtrl));
    
    while (socket.GetOpt(KSoInetNextInterface, KSolInetIfCtrl,opt) == KErrNone)
    {
    if ( opt().iState == EIfUp )
    {
    if ( !networkInfo.iAddress.IsUnspecified() 
           && !networkInfo.iAddress.IsLoopback() 
             && !networkInfo.iAddress.IsLinkLocal() )
    {
    	networkInfo = opt();
    	aIPAddr = networkInfo.iAddress;
    	aIPAddr.Output(aWLANIPAddr);
    	aNetMask = networkInfo.iNetMask;
    	aNetMask.Output(aWLANNetMask);
    	aBrdAddr = networkInfo.iBrdAddr;
    	aBrdAddr.Output(aWLANBrdAddr);
    	aDefGate = networkInfo.iDefGate;
    	aDefGate.Output(aWLANDefGate);
    	aNameSer1 = networkInfo.iNameSer1;
    	aNameSer1.Output(aWLANNameSer1);
    	aNameSer2 = networkInfo.iNameSer2;
    	aNameSer2.Output(aWLANNameSer2);
    	break;
    }}}

  2. #2
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    476

    Re: Strange issue with TSoInetInterfaceInfo

    Is there no one who has an idea about that issue??

Similar Threads

  1. Strange issue in N73, pleez help...
    By mailtomandy2000 in forum Symbian
    Replies: 1
    Last Post: 2007-05-01, 19:38
  2. RTSP video streaming issue on 6280
    By olivier_irac in forum General Development Questions
    Replies: 0
    Last Post: 2006-12-04, 15:11
  3. Strange password issue
    By marciano in forum Symbian
    Replies: 1
    Last Post: 2006-11-29, 00:56
  4. Strange Issue with MultimediaDD capability!!!
    By bharath_hegde in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 5
    Last Post: 2006-11-14, 13:55
  5. nokia 7650 BT connection - strange issue
    By superduperau in forum Bluetooth Technology
    Replies: 2
    Last Post: 2004-01-28, 00:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×