equal
deleted
inserted
replaced
341 aInUse = ETrue; |
341 aInUse = ETrue; |
342 FTRACE(FPrint(_L("CDunBtListen::ReserveLocalChannel() Bind() complete (%d)"), retTemp)); |
342 FTRACE(FPrint(_L("CDunBtListen::ReserveLocalChannel() Bind() complete (%d)"), retTemp)); |
343 return KErrInUse; |
343 return KErrInUse; |
344 } |
344 } |
345 aChannelNum = aListenSocket.LocalPort(); |
345 aChannelNum = aListenSocket.LocalPort(); |
346 |
346 |
347 // We try to set the Telephony and Networking bits in our service class. If this fails we |
347 // We try to set the Telephony and Networking bits in our service class. If this fails we |
348 // ignore it, as it's better to carry on without it than to fail to start listening. |
348 // ignore it, as it's better to carry on without it than to fail to start listening. |
349 (void)aListenSocket.SetOpt(KBTRegisterCodService, KSolBtRFCOMM, KCoDDunServiceClass); |
349 aListenSocket.SetOpt(KBTRegisterCodService, KSolBtRFCOMM, KCoDDunServiceClass); |
350 |
350 |
351 retTemp = aListenSocket.Listen( KListenQueSize ); |
351 retTemp = aListenSocket.Listen( KListenQueSize ); |
352 if ( retTemp != KErrNone ) |
352 if ( retTemp != KErrNone ) |
353 { |
353 { |
354 aListenSocket.Close(); |
354 aListenSocket.Close(); |
355 FTRACE(FPrint(_L("CDunBtListen::ReserveLocalChannel() Listen() complete (%d)"), retTemp)); |
355 FTRACE(FPrint(_L("CDunBtListen::ReserveLocalChannel() Listen() complete (%d)"), retTemp)); |