×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    14

    Question Help in using Resolvr, Zeroconf for Symbian

    Anybody using Resolvr here?

    I'd like to seek help for my problem.

    I tried to use the sample code provided in the Resolvr whitepaper but I get error messages such as the following:
    undefined identifier 'conn'
    undefined identifier 'iConnection'
    undefined identifier 'resolvr'
    undefined identifier 'serv'
    undefined identifier 'CleanupClosePushL'

    Here's the code:

    Code:
    #include <es_sock.h>
    #include <e32base.h>
    #include <zeroconf\zeroconfclient.h>
    #include <zeroconf\zeroconfservicetype.h>
    
    		RSocketServ serv;
    		User::LeaveIfError(serv.Connect());
    		CleanupClosePushL(serv);
    		
    		RConnection conn;
    		User::LeaveIfError(conn.Open(serv));
    		CleanupClosePushL(conn);
    
    		User::LeaveIfError(conn.Start());
    
    		
    		TUint32 iap(0);
    		_LIT(KCommdbIapSetting, "IAP\\Id");
    		User::LeaveIfError(iConnection.GetIntSetting(KCommdbIapSetting, iap));
    
    		Zeroconf::RZeroconfSession resolvr;
    		resolvr.OpenL(iap);
    		CleanupClosePushL(resolvr);
    
    		
    		resolvr.HintServiceTypesL();
    
    		RPointerArray types;
    		CleanupResetAndDestroyPushL(types);
    		resolvr.ServiceTypesL(types);
    		
    		CleanupStack::PopAndDestroy(4, &serv);
    Am I missing something?

    I thought I have included the required library files but I still get those error messages.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Help in using Resolvr, Zeroconf for Symbian


Similar Threads

  1. Zeroconf | Bonjour
    By nmcgillivray in forum Mobile Web Server
    Replies: 1
    Last Post: 2007-11-28, 07:13

Posting Permissions

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