Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: eui_addr.h
Link against: insock.lib

Class TE64Addr

class TE64Addr;

Description

The raw 64 bits of Modified EUI-64 address stored in network byte order.

Members

Defined in TE64Addr:
AddrLen(), AddrPtr(), AddrPtrC(), IsGroup(), IsUniversal(), IsZero(), Match(), Output(), SetAddr(), SetAddr(), SetAddr(), SetAddrFromEUI48(), SetAddrRandom(), SetAddrRandomNZ(), SetAddrRandomNZButNot(), SetAddrZero(), SetGroupBit(), SetUniversalBit(), TE64Addr(), TE64Addr(), TE64Addr(), TE64Addr()


Construction and destruction


TE64Addr()

IMPORT_C TE64Addr();

Description

Constructs an address with zero value.


TE64Addr()

IMPORT_C TE64Addr(const TE64Addr &aAddr);

Description

Constructs an address with given value.

Parameters

const TE64Addr &aAddr


TE64Addr()

IMPORT_C TE64Addr(const TInt64 &aAddr);

Description

Constructs an address with given value.

Parameters

const TInt64 &aAddr


TE64Addr()

IMPORT_C TE64Addr(const TUint8 *aPtr, TUint aLength);

Description

Constructs an address with given value.

Parameters

const TUint8 *aPtr

TUint aLength

[Top]


Member functions


SetAddr()

IMPORT_C void SetAddr(const TE64Addr &aAddr);

Description

Sets the address value.

Parameters

const TE64Addr &aAddr


SetAddr()

IMPORT_C void SetAddr(const TInt64 &aAddr);

Description

Sets the address value.

Parameters

const TInt64 &aAddr


SetAddr()

IMPORT_C void SetAddr(const TUint8 *aPtr, TUint aLength);

Description

Sets the address value.

Parameters

const TUint8 *aPtr

TUint aLength


SetAddrZero()

IMPORT_C void SetAddrZero();

Description

Creates a zero address.


SetAddrRandom()

IMPORT_C void SetAddrRandom();

Description

Creates a random address. The Group bit is set to 0. The Universal bit is set to 0.


SetAddrRandomNZ()

IMPORT_C void SetAddrRandomNZ();

Description

Creates a random non-zero address. The Group bit is set to 0. The Universal bit is set to 0.


SetAddrRandomNZButNot()

IMPORT_C void SetAddrRandomNZButNot(const TE64Addr &aAddr);

Description

Creates a random non-zero address that does not match the parameter address. The Group bit is set to 0. The Universal bit is set to 0.

Parameters

const TE64Addr &aAddr


SetAddrFromEUI48()

IMPORT_C void SetAddrFromEUI48(const TUint8 *aPtr);

Description

Reads and converts a value from EUI-48 (6 bytes).

Parameters

const TUint8 *aPtr


SetGroupBit()

IMPORT_C void SetGroupBit(TBool aBit=1);

Description

Sets the Group bit to 1 by default.

Parameters

TBool aBit


SetUniversalBit()

IMPORT_C void SetUniversalBit(TBool aBit=1);

Description

Sets the Universal bit to 1 by default.

Parameters

TBool aBit


Match()

IMPORT_C TBool Match(const TE64Addr &aAddr) const;

Description

TRUE if the address matches given address.

Parameters

const TE64Addr &aAddr

Return value

TBool


IsZero()

IMPORT_C TBool IsZero() const;

Description

TRUE if the address is a zero address.

Return value

TBool


IsGroup()

IMPORT_C TBool IsGroup() const;

Description

TRUE if the Group bit is set in the address.

Return value

TBool


IsUniversal()

IMPORT_C TBool IsUniversal() const;

Description

TRUE if the Universal bit is set in the address.

Return value

TBool


Output()

IMPORT_C void Output(TDes &aBuf) const;

Description

Writes the address into a string.

Parameters

TDes &aBuf


AddrLen()

static IMPORT_C TUint AddrLen();

Description

Returns the size of raw KAfEui64 content format.

Return value

TUint


AddrPtr()

IMPORT_C TUint8 *AddrPtr();

Description

Returns a pointer to raw KAfEui64 content format.

Return value

TUint8 *


AddrPtrC()

IMPORT_C const TUint8 *AddrPtrC() const;

Description

Returns a const pointer to raw KAfEui64 content format.

Return value

const TUint8 *