bluetooth/btsdp/server/protocol/listener.cpp
branchRCL_3
changeset 56 015fa7494bd2
parent 0 29b1cd4cb562
equal deleted inserted replaced
49:10183c6d2913 56:015fa7494bd2
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   464 	sdpSecurity.SetDenied(EFalse);
   464 	sdpSecurity.SetDenied(EFalse);
   465 
   465 
   466 	addr.SetSecurity(sdpSecurity);
   466 	addr.SetSecurity(sdpSecurity);
   467 
   467 
   468 	User::LeaveIfError(iListener.Bind(addr));
   468 	User::LeaveIfError(iListener.Bind(addr));
       
   469 	TPckgBuf<TBool> noSecurityRequired;
       
   470 	noSecurityRequired() = ETrue;
       
   471 
       
   472 	User::LeaveIfError(iListener.SetOpt(KBTSetNoSecurityRequired, KSolBtSAPBase, noSecurityRequired));
   469 	User::LeaveIfError(iListener.Listen(iQueSize));
   473 	User::LeaveIfError(iListener.Listen(iQueSize));
   470 	}
   474 	}
   471 
   475 
   472 void CSdpListener::TryRestartL()
   476 void CSdpListener::TryRestartL()
   473 	{
   477 	{