bluetoothengine/btmac/src/btmac/btmsyncsock.cpp
branchRCL_3
changeset 64 1934667b0e2b
parent 0 f63038272f30
equal deleted inserted replaced
61:269724087bed 64:1934667b0e2b
     1 /*
     1 /*
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    68 void CBtmSyncSock::AcceptL(TBool aAllowEsco)
    68 void CBtmSyncSock::AcceptL(TBool aAllowEsco)
    69     {
    69     {
    70     TRACE_FUNC_ENTRY
    70     TRACE_FUNC_ENTRY
    71     iScoAcceptor = TScoAcceptor(this);
    71     iScoAcceptor = TScoAcceptor(this);
    72     iSco->SetNotifier(iScoAcceptor);
    72     iSco->SetNotifier(iScoAcceptor);
    73     iSco->AcceptConnection(TBTSyncPackets(KScoPacketTypeSpec));
    73     User::LeaveIfError(iSco->AcceptConnection(TBTSyncPackets(KScoPacketTypeSpec)));
    74     if (aAllowEsco)
    74     if (aAllowEsco)
    75         {
    75         {
    76         iESco_Acceptor = TScoAcceptor(this);
    76         iESco_Acceptor = TScoAcceptor(this);
    77         iEScoLink = CBluetoothSynchronousLink::NewL(iESco_Acceptor, iServer);
    77         iEScoLink = CBluetoothSynchronousLink::NewL(iESco_Acceptor, iServer);
    78         iEScoLink->AcceptConnection(TBTSyncPackets(KEscoPacketTypeSpec));
    78         iEScoLink->AcceptConnection(TBTSyncPackets(KEscoPacketTypeSpec));