Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: IpAddr.h
Link against: biut.lib

Class CIpAddress

class CIpAddress : public CBase;

Description

Utility class to hold an IP address as a string on the heap.

This can be useful for parsers that have IP address fields.

Derivation

Members

Defined in CIpAddress:
Addr(), NewL(), NewL(), NewLC(), NewLC(), SetAddrL(), ~CIpAddress()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CIpAddress *NewL(const TDesC &aAddr);

Description

Allocates and constructs a new IP address object with a specified address.

A buffer is allocated on the heap and aAddr copied into it.

Parameters

const TDesC &aAddr

IP address string

Return value

CIpAddress *

New IP address object


NewLC()

static IMPORT_C CIpAddress *NewLC(const TDesC &aAddr);

Description

Allocates and constructs a new IP address object with a specified address, leaving the object on the cleanup stack.

A buffer is allocated on the heap and aAddr copied into it.

Parameters

const TDesC &aAddr

IP address string

Return value

CIpAddress *

New IP address object


NewL()

static inline CIpAddress *NewL();

Description

Allocates and constructs a new empty IP address object.

Return value

CIpAddress *

New IP address object


NewLC()

static inline CIpAddress *NewLC();

Description

Allocates and constructs a new empty IP address object, leaving the object on the cleanup stack.

Return value

CIpAddress *

New IP address object


~CIpAddress()

IMPORT_C ~CIpAddress();

Description

Destructor.

[Top]


Member functions


SetAddrL()

IMPORT_C void SetAddrL(const TDesC &aAddr);

Description

Sets the IP address.

A buffer is allocated on the heap and aAddr copied into it.

Parameters

const TDesC &aAddr

IP address string


Addr()

IMPORT_C const TDesC &Addr() const;

Description

Gets the IP address.

Return value

const TDesC &

IP address string