×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    socket inizializzation

    hi, i'm inizializzating a socket bluetooth in this way but during compile i have this problems:
    void CDeviceDiscoverer::RunL()
    {
    // RHostResolver.GetByAddress(..) has completed, process results
    if ( iStatus!=KErrNone )
    {
    // all devices (if any) done, notify
    iObserver.HandleDeviceDiscoveryCompleteL();
    }
    else
    {
    // new device data entry
    TDeviceData *devData = new (ELeave) TDeviceData();
    devData->iDeviceName = iEntry().iName;
    devData->iDeviceAddr = static_cast<TBTSockAddr>(iEntry().iAddr).BTAddr();
    devData->iDeviceServicePort = 0;
    aConfiguration = new (ELeave)TBTConfiguration(iDeviceServicePort,aProtocol);
    iServiceSocket = CBluetoothSocket::NewL( *this, iSocketServ, aConfiguration.iProtocol );

    iConfig = new (ELeave) TL2CapConfig;
    iConfig->SetMaxReceiveUnitSize(aConfiguration.iReceiveMRU);
    iConfig->SetMaxTransmitUnitSize(aConfiguration.iReceiveMRU);
    TL2CapConfigPkg pkgconf(*iConfig);
    iServiceSocket->SetOpt(KL2CAPUpdateChannelConfig, KSolBtL2CAP, pkgconf);


    Problems:
    Severity Description Resource In Folder Location Creation Time Id
    2 undefined identifier 'iSocketServ' DeviceDiscoverer.cpp BluetoothModule/src line 66 25 febbraio 2008 10.23.50 1319

    Severity Description Resource In Folder Location Creation Time Id
    2 undefined identifier 'aConfiguration' DeviceDiscoverer.cpp BluetoothModule/src line 49 25 febbraio 2008 10.23.50 1312

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    Re: socket inizializzation

    I cannot see where iSocketServ & aConfiguration are declared, did you declare them at all?

Similar Threads

  1. TCP server packet receiving problem
    By raj_rr7 in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2007-07-12, 12:24
  2. SOCKET PROGRAMMING: Client can not connect to server...
    By simbiyan in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2007-04-22, 20:00
  3. problem in persistant socket connection
    By poms4symbian in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-03, 13:23
  4. Socket problem
    By defragger in forum Symbian
    Replies: 0
    Last Post: 2005-08-25, 08:16

Posting Permissions

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