TBTSockAddr Class Reference

#include <btsockaddr.h>

Link against: bluetooth.lib

class TBTSockAddr : public TSockAddr

Inherits from

  • TBTSockAddr
    Public Member Functions
    TBTSockAddr()
    TBTSockAddr(const TSockAddr &)
    IMPORT_C TBTDevAddrBTAddr()
    IMPORT_C TBTServiceSecurityBTSecurity()
    IMPORT_C TBTSockAddr &Cast(const TSockAddr &)
    IMPORT_C voidSetBTAddr(const TBTDevAddr &)
    IMPORT_C voidSetSecurity(const TBTServiceSecurity &)
    Protected Member Functions
    IMPORT_C TAny *EndBTSockAddrPtr()
    Inherited Attributes
    TBuf8< KMaxSockAddrSize >::iBuf
    TDes8::__DECLARE_TEST
    TDes8::iMaxLength
    Inherited Functions
    TBuf8< KMaxSockAddrSize >::TBuf8()
    TBuf8< KMaxSockAddrSize >::TBuf8(TInt)
    TBuf8< KMaxSockAddrSize >::TBuf8(const TDesC8 &)
    TBuf8< KMaxSockAddrSize >::TBuf8(const TUint8 *)
    TBuf8< KMaxSockAddrSize >::operator=(const TBuf8< S > &)
    TBuf8< KMaxSockAddrSize >::operator=(const TDesC8 &)
    TBuf8< KMaxSockAddrSize >::operator=(const TUint8 *)
    TBufBase8::TBufBase8(TInt)
    TBufBase8::TBufBase8(TInt,TInt)
    TBufBase8::TBufBase8(const TDesC8 &,TInt)
    TBufBase8::TBufBase8(const TUint8 *,TInt)
    TDes8::Append(TChar)
    TDes8::Append(const TDesC16 &)
    TDes8::Append(const TDesC8 &)
    TDes8::Append(const TUint8 *,TInt)
    TDes8::AppendFill(TChar,TInt)
    TDes8::AppendFormat(TRefByValue< const TDesC8 >,...)
    TDes8::AppendFormat(TRefByValue< const TDesC8 >,TDes8Overflow *,...)
    TDes8::AppendFormatList(const TDesC8 &,VA_LIST,TDes8Overflow *)
    TDes8::AppendJustify(const TDesC8 &,TInt,TAlign,TChar)
    TDes8::AppendJustify(const TDesC8 &,TInt,TInt,TAlign,TChar)
    TDes8::AppendJustify(const TUint8 *,TInt,TAlign,TChar)
    TDes8::AppendJustify(const TUint8 *,TInt,TInt,TAlign,TChar)
    TDes8::AppendNum(TInt64)
    TDes8::AppendNum(TReal,const TRealFormat &)
    TDes8::AppendNum(TUint64,TRadix)
    TDes8::AppendNumFixedWidth(TUint,TRadix,TInt)
    TDes8::AppendNumFixedWidthUC(TUint,TRadix,TInt)
    TDes8::AppendNumUC(TUint64,TRadix)
    TDes8::Capitalize()
    TDes8::Collapse()
    TDes8::Collate()
    TDes8::Copy(const TDesC16 &)
    TDes8::Copy(const TDesC8 &)
    TDes8::Copy(const TUint8 *)
    TDes8::Copy(const TUint8 *,TInt)
    TDes8::CopyC(const TDesC8 &)
    TDes8::CopyCP(const TDesC8 &)
    TDes8::CopyF(const TDesC8 &)
    TDes8::CopyLC(const TDesC8 &)
    TDes8::CopyUC(const TDesC8 &)
    TDes8::Delete(TInt,TInt)
    TDes8::DoAppendNum(TUint64,TRadix,TUint,TInt)
    TDes8::DoPadAppendNum(TInt,TInt,const TUint8 *)
    TDes8::Expand()
    TDes8::Fill(TChar)
    TDes8::Fill(TChar,TInt)
    TDes8::FillZ()
    TDes8::FillZ(TInt)
    TDes8::Fold()
    TDes8::Format(TRefByValue< const TDesC8 >,...)
    TDes8::FormatList(const TDesC8 &,VA_LIST)
    TDes8::Insert(TInt,const TDesC8 &)
    TDes8::Justify(const TDesC8 &,TInt,TAlign,TChar)
    TDes8::LeftTPtr(TInt)const
    TDes8::LowerCase()
    TDes8::MaxLength()const
    TDes8::MaxSize()const
    TDes8::MidTPtr(TInt)const
    TDes8::MidTPtr(TInt,TInt)const
    TDes8::Num(TInt64)
    TDes8::Num(TReal,const TRealFormat &)
    TDes8::Num(TUint64,TRadix)
    TDes8::NumFixedWidth(TUint,TRadix,TInt)
    TDes8::NumFixedWidthUC(TUint,TRadix,TInt)
    TDes8::NumUC(TUint64,TRadix)
    TDes8::PtrZ()
    TDes8::Repeat(const TDesC8 &)
    TDes8::Repeat(const TUint8 *,TInt)
    TDes8::Replace(TInt,TInt,const TDesC8 &)
    TDes8::RightTPtr(TInt)const
    TDes8::SetLength(TInt)
    TDes8::SetMax()
    TDes8::Swap(TDes8 &)
    TDes8::TDes8()
    TDes8::TDes8(TInt,TInt,TInt)
    TDes8::Trim()
    TDes8::TrimAll()
    TDes8::TrimLeft()
    TDes8::TrimRight()
    TDes8::UpperCase()
    TDes8::WPtr()const
    TDes8::Zero()
    TDes8::ZeroTerminate()
    TDes8::operator+=(const TDesC8 &)
    TDes8::operator=(const TDes8 &)
    TDes8::operator[](TInt)
    TDes8::operator[](TInt)const
    TDesC8::Alloc()const
    TDesC8::AllocL()const
    TDesC8::AllocLC()const
    TDesC8::AtC(TInt)const
    TDesC8::Compare(const TDesC8 &)const
    TDesC8::CompareC(const TDesC8 &)const
    TDesC8::CompareF(const TDesC8 &)const
    TDesC8::DoSetLength(TInt)
    TDesC8::Find(const TDesC8 &)const
    TDesC8::Find(const TUint8 *,TInt)const
    TDesC8::FindC(const TDesC8 &)const
    TDesC8::FindC(const TUint8 *,TInt)const
    TDesC8::FindF(const TDesC8 &)const
    TDesC8::FindF(const TUint8 *,TInt)const
    TDesC8::Left(TInt)const
    TDesC8::Length()const
    TDesC8::Locate(TChar)const
    TDesC8::LocateF(TChar)const
    TDesC8::LocateReverse(TChar)const
    TDesC8::LocateReverseF(TChar)const
    TDesC8::Match(const TDesC8 &)const
    TDesC8::MatchC(const TDesC8 &)const
    TDesC8::MatchF(const TDesC8 &)const
    TDesC8::Mid(TInt)const
    TDesC8::Mid(TInt,TInt)const
    TDesC8::Ptr()const
    TDesC8::Right(TInt)const
    TDesC8::Size()const
    TDesC8::TDesC8()
    TDesC8::TDesC8(TInt,TInt)
    TDesC8::Type()const
    TDesC8::operator!=(const TDesC8 &)const
    TDesC8::operator<(const TDesC8 &)const
    TDesC8::operator<=(const TDesC8 &)const
    TDesC8::operator==(const TDesC8 &)const
    TDesC8::operator>(const TDesC8 &)const
    TDesC8::operator>=(const TDesC8 &)const
    TSockAddr::CmpPort(const TSockAddr &)const
    TSockAddr::Family()const
    TSockAddr::GetUserLen()
    TSockAddr::Port()const
    TSockAddr::SetFamily(TUint)
    TSockAddr::SetPort(TUint)
    TSockAddr::SetUserLen(TInt)
    TSockAddr::TSockAddr()
    TSockAddr::TSockAddr(TUint)
    TSockAddr::UserPtr()const

    Detailed Description

    Bluetooth socket address

    Stores bluetooth device address, and security - these are common to all Bluetooth addresses

    Constructor & Destructor Documentation

    TBTSockAddr ( )

    IMPORT_CTBTSockAddr()

    Constructor

    TBTSockAddr ( const TSockAddr & )

    IMPORT_CTBTSockAddr(const TSockAddr &aAddr)

    Constructor taking socket address baseclass reference. Rather like a copy constructor

    Copies the port number and the entirety of the user data, which conatins the Bluetooth Address and Security Settings

    The family type is set to KBTAddrFamily

    ParameterDescription
    aAddra previously filled TSockAddr

    Member Function Documentation

    BTAddr ( )

    IMPORT_C TBTDevAddrBTAddr()const

    Getter

    Returns: The device address specified by this Socket address

    BTSecurity ( )

    IMPORT_C TBTServiceSecurityBTSecurity()const

    Getter

    Returns: Security settings

    Cast ( const TSockAddr & )

    IMPORT_C TBTSockAddr &Cast(const TSockAddr &aAddr)[static]

    Utility function to downcast a TSockAddr to a TBTSockAddr

    Returns: TBTSockAddr reference

    EndBTSockAddrPtr ( )

    IMPORT_C TAny *EndBTSockAddrPtr()const [protected]

    SetBTAddr ( const TBTDevAddr & )

    IMPORT_C voidSetBTAddr(const TBTDevAddr &aRemote)

    Sets BT address from a TBTDevAddr.

    ParameterDescription
    aRemoteBluetooth device address of remote device

    SetSecurity ( const TBTServiceSecurity & )

    IMPORT_C voidSetSecurity(const TBTServiceSecurity &aSecurity)

    Setter Care needs to be taken when setting outgoing security as if a device in the system is using pre-Bluetooth v2.1 hardware then connection attempts may fail.

    ParameterDescription
    aSecurityreference to const TBTServiceSecurity holding security settings