TQoSSelector Class Reference

class TQoSSelector

Selector for QoS policies. The variables defined in TQoSSelector are used to find QoS policies for traffic flows. Not all variables have to be set, the application can specify the variables that it wants to. Note: TQoSSelector stores IPv4 addresses in "IPv4-mapped IPv6 address" format.

Public Member Functions
TQoSSelector()
IMPORT_C TInetAddrGetDst()
IMPORT_C TInetAddrGetDstMask()
IMPORT_C TInetAddrGetSrc()
IMPORT_C TInetAddrGetSrcMask()
IMPORT_C TIntIapId()
IMPORT_C TBoolMatch(RSocket &)
IMPORT_C TUintMaxPortDst()
IMPORT_C TUintMaxPortSrc()
IMPORT_C TUintProtocol()
IMPORT_C TIntSetAddr(const TInetAddr &, const TInetAddr &, const TInetAddr &, const TInetAddr &, TUint, TUint, TUint)
IMPORT_C TIntSetAddr(RSocket &)
IMPORT_C TIntSetDst(const TInetAddr &)
IMPORT_C TIntSetDstMask(const TInetAddr &)
IMPORT_C voidSetIapId(TInt)
IMPORT_C TIntSetMaxPortDst(TUint)
IMPORT_C TIntSetMaxPortSrc(TUint)
IMPORT_C voidSetProtocol(TUint)
IMPORT_C TIntSetSrc(const TInetAddr &)
IMPORT_C TIntSetSrcMask(const TInetAddr &)
IMPORT_C TIntoperator==(const TQoSSelector &)
Private Attributes
TInetAddr iDst
TInetAddr iDstMask
TUint iDstPortMax
TUint iIapId
TUint iProtocol
TInetAddr iSrc
TInetAddr iSrcMask
TUint iSrcPortMax

Constructor & Destructor Documentation

TQoSSelector()

IMPORT_CTQoSSelector()

Constructor. Initialises all variables to unspecified values.

Constructor.

Initialises all variables to specified, but null, values.
capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Member Functions Documentation

GetDst()

IMPORT_C TInetAddrGetDst()const

Returns the current destination address.

Gets the current destination address.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

GetDstMask()

IMPORT_C TInetAddrGetDstMask()const

Returns the current destination address mask.

Gets the current destination address mask.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

GetSrc()

IMPORT_C TInetAddrGetSrc()const

Returns the current source address.

Gets the current source address.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

GetSrcMask()

IMPORT_C TInetAddrGetSrcMask()const

Returns the current source address mask.

Gets the current source address mask.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

IapId()

IMPORT_C TIntIapId()const

Returns the current Internet access point identifier.

Gets the current Internet access point identifier.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Match(RSocket &)

IMPORT_C TBoolMatch(RSocket &aSocket)const

Compares if the selector matches aSocket.

Compares if the selector matches aSocket.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

RSocket & aSocketRSocket that is compared with this object.

MaxPortDst()

IMPORT_C TUintMaxPortDst()const

Returns the maximum destination port.

Gets the maximum destination port.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

MaxPortSrc()

IMPORT_C TUintMaxPortSrc()const

Returns the maximum source port.

Gets the maximum source port.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Protocol()

IMPORT_C TUintProtocol()const

Returns the current protocol identifier.

Gets the current protocol identifier.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

SetAddr(const TInetAddr &, const TInetAddr &, const TInetAddr &, const TInetAddr &, TUint, TUint, TUint)

IMPORT_C TIntSetAddr(const TInetAddr &aSrcAddr,
const TInetAddr &aSrcAddrMask,
const TInetAddr &aDstAddr,
const TInetAddr &aDstAddrMask,
TUintaProtocol,
TUintaSrcPortMax,
TUintaDstPortMax
)

Sets the addresses for selector.

Sets the addresses for selector.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

const TInetAddr & aSrcAddrSource address. Port must have value <= 65535 (0 is used as uspecified value for a port).
const TInetAddr & aSrcAddrMaskSource address mask. Port must have value <= 65535 (0 is used as uspecified value for a port).
const TInetAddr & aDstAddrDestination address. Port must have value <= 65535 (0 is used as uspecified value for a port).
const TInetAddr & aDstAddrMaskDestination address mask. Port must have value <= 65535 (0 is used as uspecified value for a port).
TUint aProtocolProtocol ID.
TUint aSrcPortMaxMaximum source port. Must have value <= 65535 (0 is used as uspecified value for a port).
TUint aDstPortMaxMaximum destination port. Must have value <= 65535 (0 is used as uspecified value for a port).

SetAddr(RSocket &)

IMPORT_C TIntSetAddr(RSocket &aSocket)

Sets the addresses for selector. RSocket is used to fetch addresses and ports for a selector. The resulting selector will match only for one socket. NOTE: RSocket::Connect() must be called before calling this method.

Sets the addresses for selector.

RSocket is used to fetch addresses and ports for a selector. The resulting selector will match only for one socket.

Note that RSocket::Connect() must be called before calling this function.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

RSocket & aSocketRSocket object that is used to set the selector variables. Note: RSocket must be connected

SetDst(const TInetAddr &)

IMPORT_C TIntSetDst(const TInetAddr &aAddr)

Sets the destination address for selector.

Sets the destination address for selector.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

const TInetAddr & aAddrDestination address. Port must have value <= 65535 (0 is used as uspecified value for a port).

SetDstMask(const TInetAddr &)

IMPORT_C TIntSetDstMask(const TInetAddr &aMask)

Sets the destination address mask.

Sets the destination address mask.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

const TInetAddr & aMaskDestination address mask. Port must have value <= 65535 (0 is used as uspecified value for a port).

SetIapId(TInt)

IMPORT_C voidSetIapId(TIntaIapId)

Sets the Internet access point identifier. 0 is used as unspecified value.

Sets the Internet access point identifier.

0 is used as unspecified value.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

TInt aIapIdValue to which to set the IapId.

SetMaxPortDst(TUint)

IMPORT_C TIntSetMaxPortDst(TUintaMaxPort)

Sets the maximum destination port. Port must have value <= 65535 (0 is used as unspecified value).

Sets the maximum destination port.

Port must have value <= 65535 (0 is used as unspecified value).

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

TUint aMaxPortValue to which to set maximum destination port.

SetMaxPortSrc(TUint)

IMPORT_C TIntSetMaxPortSrc(TUintaMaxPort)

Sets the maximum source port. Port must have value <= 65535 (0 is used as unspecified value).

Sets the maximum source port.

Port must have value <= 65535 (0 is used as unspecified value).

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

TUint aMaxPortValue to which to set maximum source port.

SetProtocol(TUint)

IMPORT_C voidSetProtocol(TUintaProtocol)

Sets the protocol identifier. 0 is used as unspecified value.

Sets the protocol identifier.

0 is used as unspecified value.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

TUint aProtocolValue to which to set the protocol ID.

SetSrc(const TInetAddr &)

IMPORT_C TIntSetSrc(const TInetAddr &aAddr)

Sets the source address for selector.

Sets the source address for selector.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

const TInetAddr & aAddrSource address. Port must have value <= 65535 (0 is used as uspecified value for a port).

SetSrcMask(const TInetAddr &)

IMPORT_C TIntSetSrcMask(const TInetAddr &aMask)

Sets the source address mask.

Sets the source address mask.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

const TInetAddr & aMaskSource address mask. Port must have value <= 65535 (0 is used as uspecified value for a port).

operator==(const TQoSSelector &)

IMPORT_C TIntoperator==(const TQoSSelector &aSelector)const

Compares if the selectors are equal.

Compares if the selectors are equal.

capability
NetworkControl Restrict QoS policy operations because they may affect several data flows.

Parameters

const TQoSSelector & aSelectorTQoSSelector object that is compared with this object.

Member Data Documentation

TInetAddr iDst

TInetAddr iDst[private]

The destination address.

TInetAddr iDstMask

TInetAddr iDstMask[private]

The destination address mask.

TUint iDstPortMax

TUint iDstPortMax[private]

The maximum destination port.

TUint iIapId

TUint iIapId[private]

The Internet access point identifier.

TUint iProtocol

TUint iProtocol[private]

The protocol ID.

TInetAddr iSrc

TInetAddr iSrc[private]

The source address.

TInetAddr iSrcMask

TInetAddr iSrcMask[private]

The source address mask.

TUint iSrcPortMax

TUint iSrcPortMax[private]

The maximum source port.