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 TInetAddr | GetDst () |
IMPORT_C TInetAddr | GetDstMask () |
IMPORT_C TInetAddr | GetSrc () |
IMPORT_C TInetAddr | GetSrcMask () |
IMPORT_C TInt | IapId () |
IMPORT_C TBool | Match ( RSocket &) |
IMPORT_C TUint | MaxPortDst () |
IMPORT_C TUint | MaxPortSrc () |
IMPORT_C TUint | Protocol () |
IMPORT_C TInt | SetAddr (const TInetAddr &, const TInetAddr &, const TInetAddr &, const TInetAddr &, TUint , TUint , TUint ) |
IMPORT_C TInt | SetAddr ( RSocket &) |
IMPORT_C TInt | SetDst (const TInetAddr &) |
IMPORT_C TInt | SetDstMask (const TInetAddr &) |
IMPORT_C void | SetIapId ( TInt ) |
IMPORT_C TInt | SetMaxPortDst ( TUint ) |
IMPORT_C TInt | SetMaxPortSrc ( TUint ) |
IMPORT_C void | SetProtocol ( TUint ) |
IMPORT_C TInt | SetSrc (const TInetAddr &) |
IMPORT_C TInt | SetSrcMask (const TInetAddr &) |
IMPORT_C TInt | operator== (const TQoSSelector &) |
Private Attributes | |
---|---|
TInetAddr | iDst |
TInetAddr | iDstMask |
TUint | iDstPortMax |
TUint | iIapId |
TUint | iProtocol |
TInetAddr | iSrc |
TInetAddr | iSrcMask |
TUint | iSrcPortMax |
IMPORT_C | TQoSSelector | ( | ) |
Constructor. Initialises all variables to unspecified values.
Constructor.
IMPORT_C TInetAddr | GetDst | ( | ) | const |
Returns the current destination address.
Gets the current destination address.
IMPORT_C TInetAddr | GetDstMask | ( | ) | const |
Returns the current destination address mask.
Gets the current destination address mask.
IMPORT_C TInetAddr | GetSrc | ( | ) | const |
Returns the current source address.
Gets the current source address.
IMPORT_C TInetAddr | GetSrcMask | ( | ) | const |
Returns the current source address mask.
Gets the current source address mask.
IMPORT_C TInt | IapId | ( | ) | const |
Returns the current Internet access point identifier.
Gets the current Internet access point identifier.
IMPORT_C TBool | Match | ( | RSocket & | aSocket | ) | const |
Compares if the selector matches aSocket.
Compares if the selector matches aSocket.
RSocket & aSocket | RSocket that is compared with this object. |
IMPORT_C TUint | MaxPortDst | ( | ) | const |
Returns the maximum destination port.
Gets the maximum destination port.
IMPORT_C TUint | MaxPortSrc | ( | ) | const |
Returns the maximum source port.
Gets the maximum source port.
IMPORT_C TUint | Protocol | ( | ) | const |
Returns the current protocol identifier.
Gets the current protocol identifier.
IMPORT_C TInt | SetAddr | ( | const TInetAddr & | aSrcAddr, |
const TInetAddr & | aSrcAddrMask, | |||
const TInetAddr & | aDstAddr, | |||
const TInetAddr & | aDstAddrMask, | |||
TUint | aProtocol, | |||
TUint | aSrcPortMax, | |||
TUint | aDstPortMax | |||
) |
Sets the addresses for selector.
Sets the addresses for selector.
const TInetAddr & aSrcAddr | Source address. Port must have value <= 65535 (0 is used as uspecified value for a port). |
const TInetAddr & aSrcAddrMask | Source address mask. Port must have value <= 65535 (0 is used as uspecified value for a port). |
const TInetAddr & aDstAddr | Destination address. Port must have value <= 65535 (0 is used as uspecified value for a port). |
const TInetAddr & aDstAddrMask | Destination address mask. Port must have value <= 65535 (0 is used as uspecified value for a port). |
TUint aProtocol | Protocol ID. |
TUint aSrcPortMax | Maximum source port. Must have value <= 65535 (0 is used as uspecified value for a port). |
TUint aDstPortMax | Maximum destination port. Must have value <= 65535 (0 is used as uspecified value for a port). |
IMPORT_C TInt | SetAddr | ( | 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.
RSocket & aSocket | RSocket object that is used to set the selector variables. Note: RSocket must be connected |
IMPORT_C TInt | SetDst | ( | const TInetAddr & | aAddr | ) |
Sets the destination address for selector.
Sets the destination address for selector.
const TInetAddr & aAddr | Destination address. Port must have value <= 65535 (0 is used as uspecified value for a port). |
IMPORT_C TInt | SetDstMask | ( | const TInetAddr & | aMask | ) |
Sets the destination address mask.
Sets the destination address mask.
const TInetAddr & aMask | Destination address mask. Port must have value <= 65535 (0 is used as uspecified value for a port). |
IMPORT_C void | SetIapId | ( | TInt | aIapId | ) |
Sets the Internet access point identifier. 0 is used as unspecified value.
Sets the Internet access point identifier.
0 is used as unspecified value.
TInt aIapId | Value to which to set the IapId. |
IMPORT_C TInt | SetMaxPortDst | ( | TUint | aMaxPort | ) |
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).
TUint aMaxPort | Value to which to set maximum destination port. |
IMPORT_C TInt | SetMaxPortSrc | ( | TUint | aMaxPort | ) |
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).
TUint aMaxPort | Value to which to set maximum source port. |
IMPORT_C void | SetProtocol | ( | TUint | aProtocol | ) |
Sets the protocol identifier. 0 is used as unspecified value.
Sets the protocol identifier.
0 is used as unspecified value.
TUint aProtocol | Value to which to set the protocol ID. |
IMPORT_C TInt | SetSrc | ( | const TInetAddr & | aAddr | ) |
Sets the source address for selector.
Sets the source address for selector.
const TInetAddr & aAddr | Source address. Port must have value <= 65535 (0 is used as uspecified value for a port). |
IMPORT_C TInt | SetSrcMask | ( | const TInetAddr & | aMask | ) |
Sets the source address mask.
Sets the source address mask.
const TInetAddr & aMask | Source address mask. Port must have value <= 65535 (0 is used as uspecified value for a port). |
IMPORT_C TInt | operator== | ( | const TQoSSelector & | aSelector | ) | const |
Compares if the selectors are equal.
Compares if the selectors are equal.
const TQoSSelector & aSelector | TQoSSelector object that is compared with this object. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.