Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: eui_addr.h
Link against: insock.lib

Class TEui64Addr

class TEui64Addr : public TSockAddr;

Description

This class specializes the generic socket server address class TSockAddr for the IPv6 Interface Identifier; the Modified EUI-64 address. Value KAfEui64 is used for the protocol family field of the TSockAddr base class.

Derivation

Members

Defined in TEui64Addr:
AddrLen(), AddrPtr(), Address(), Cast(), Cast(), Init(), IsZero(), Match(), SetAddress(), TEui64Addr(), TEui64Addr(), TEui64Addr()

Inherited from TSockAddr:
CmpPort(), Family(), GetUserLen(), Port(), SetFamily(), SetPort(), SetUserLen(), UserPtr()


Construction and destruction


TEui64Addr()

IMPORT_C TEui64Addr();

Description

Constructs a basic IPv6 Interface Identifier. The family is initialized to KafEui64. The port (unused) is initialized to 0. The address is set to zero address.


TEui64Addr()

IMPORT_C TEui64Addr(const TSockAddr &aAddr);

Description

Constructs an IPv6 Interface Identifier from TSockAddr. The family of the parameter must be KAfEui64 or 0. The family of the resulting address is KAfEui64. The port (unused) is initialized to 0. The address bytes are copied from the parameter.

Parameters

const TSockAddr &aAddr


TEui64Addr()

inline TEui64Addr(const TE64Addr &aAddr);

Description

Constructs an IPv6 Interface Identifier from TE64Addr. The family is initialized to KAfEui64. The port (unused) is initialized to 0. The address bytes are copied from the parameter.

Parameters

const TE64Addr &aAddr

TE64Addr to be used as initial content.

[Top]


Member functions


Init()

IMPORT_C void Init();

Description

Initializes the TSockAddr parts of an IPv6 Interface Identifier. The family is set to KAfEui64. The port (unused) is initialized to 0. The address bytes are not touched.


SetAddress()

IMPORT_C void SetAddress(const TE64Addr &aAddr);

Description

Sets the address bytes to given value. The other TSockAddr fields are not touched.

Parameters

const TE64Addr &aAddr


Address()

IMPORT_C TE64Addr &Address() const;

Description

Accesses the address bytes.

Return value

TE64Addr &


Match()

IMPORT_C TBool Match(const TEui64Addr &aAddr) const;

Description

TRUE if the address bytes match the parameter's.

Parameters

const TEui64Addr &aAddr

Return value

TBool


IsZero()

IMPORT_C TBool IsZero() const;

Description

TRUE if the address bytes are all zeros.

Return value

TBool


Cast()

static IMPORT_C TEui64Addr &Cast(const TSockAddr &aAddr);

Description

Unsafely casts a TSockAddr to TEui64Addr.

Parameters

const TSockAddr &aAddr

Return value

TEui64Addr &


Cast()

static IMPORT_C TEui64Addr &Cast(const TSockAddr *aAddr);

Description

Unsafely casts a TSockAddr to TEui64Addr.

Parameters

const TSockAddr *aAddr

Return value

TEui64Addr &


AddrPtr()

protected: IMPORT_C SE64Addr *AddrPtr() const;

Description

Returns a pointer to KAfEui64 content format.

Return value

SE64Addr *


AddrLen()

protected: static IMPORT_C TUint AddrLen();

Description

Returns the size of the KAfEui64 content format.

Return value

TUint