// for 'getting' a RBTBaseband from a connected socket
TInt RBTBaseband::Open(RSocketServ& aSocketServ, RSocket& aConnectedSocket)
	{
	if (!aConnectedSocket.SubSessionHandle())
		{
		return KErrNotReady;
		}
	
	THCIConnHandle bbHandle;
	TPckg<THCIConnHandle> bbHandleBuf(bbHandle);

	TInt err = aConnectedSocket.GetOpt(KLMGetACLHandle, KSolBtACL, bbHandleBuf);
	if (err)
		{
		return err;
		}
	err = iSocket.Open(aSocketServ, KBTAddrFamily, bbHandle, KBTLinkManager);

	return err;
	}
// -----------------------------------------------------------------------------
// TOutgoingRequestQueueItem::Match
// -----------------------------------------------------------------------------
//   
TBool TOutgoingRequestQueueItem::Match( RSocket& aSocket ) const
    {
    return ( aSocket.SubSessionHandle() == iSocket.SubSessionHandle() );
    }
// -----------------------------------------------------------------------------
// CUdpCRLFSender::HasSocket
// From CCRLFSender
// -----------------------------------------------------------------------------
//
TBool CUdpCRLFSender::HasSocket(const RSocket& aSocket) const
    {
    return (aSocket.SubSessionHandle() == iSocket.SubSessionHandle());
    }