class MSigCompController |
Interface class for sigcomp controller
Public Member Functions | |
---|---|
~MSigCompController () | |
void | AllowL (const TInetAddr &, TUint32 ) |
TInt | CompartmentCount () |
TUint32 | CreateCompartmentL ( TUint32 ) |
CBufBase * | DecompressL (const TDesC8 &, TUint &, TBool ) |
void | Deny () |
CBufBase * | EncodeL (const TSIPTransportParams &, CSIPRequest &, const TInetAddr &, TBool , TBool &) |
CBufBase * | EncodeL (const TSIPTransportParams &, CSIPResponse &, const TInetAddr &, TBool , TBool &) |
TBool | IsCompleteSigCompMessageL (const TDesC8 &) |
TBool | IsSigCompMsg (const TDesC8 &) |
TBool | IsSupported () |
void | RemoveCompartment ( TUint32 ) |
void | SendFailedL ( TUint32 ) |
void | AllowL | ( | const TInetAddr & | aAddress, |
TUint32 | aIapId | |||
) | [pure virtual] |
Allows the state of the decompressed message to be saved; leaves on failure.
const TInetAddr & aAddress | A remote destination address |
TUint32 aIapId | A iap id |
TInt | CompartmentCount | ( | ) | [pure virtual] |
The function returns count of compartments
TUint32 | CreateCompartmentL | ( | TUint32 | aIapId | ) | [pure virtual] |
After calling this function Connection Mgr always uses signalling compression for requests sent with compartmentId returned by this function. Multiple users can share a compression to one host: In sending phase remote inetaddr and compartmentid are mapped together. If some other compartmentid has already same remote destination address mapped with it, ids share the same compartment.
TUint32 aIapId |
CBufBase * | DecompressL | ( | const TDesC8 & | aMessage, |
TUint & | aBytesConsumed, | |||
TBool | aIsStreamBased | |||
) | [pure virtual] |
Decompress the message; leaves on failure. Leaves with a system wide error decompressing fails. The function expects the client to provide complete SigComp message.
CBufBase * | EncodeL | ( | const TSIPTransportParams & | aTransportParams, |
CSIPRequest & | aRequest, | |||
const TInetAddr & | aAddress, | |||
TBool | aStreambasedProtocol, | |||
TBool & | aCompressed | |||
) | [pure virtual] |
The function encodes the Request and compresses it if there is compartment matching compartmentId. After calling this function, next-hop address is mapped with compartmentId. Leaves with a system wide error if encoding or compressing fails.
const TSIPTransportParams & aTransportParams | contains compartmentId and iapId |
CSIPRequest & aRequest | a request to encode and compress |
const TInetAddr & aAddress | A remote destination address |
TBool aStreambasedProtocol | |
TBool & aCompressed |
CBufBase * | EncodeL | ( | const TSIPTransportParams & | aTransportParams, |
CSIPResponse & | aResponse, | |||
const TInetAddr & | aAddress, | |||
TBool | aStreambasedProtocol, | |||
TBool & | aCompressed | |||
) | [pure virtual] |
The function encodes the Response and compresses it if there is compartment matching compartmentId. After calling this function, next-hop address is mapped with compartmentId. Leaves with a system wide error if encoding or compressing fails.
const TSIPTransportParams & aTransportParams | contains compartmentId and iapId |
CSIPResponse & aResponse | a response to encode and compress |
const TInetAddr & aAddress | A remote destination address |
TBool aStreambasedProtocol | |
TBool & aCompressed |
TBool | IsCompleteSigCompMessageL | ( | const TDesC8 & | aMessage | ) | const [pure virtual] |
Checks if the message contains the delimeter indicating SigComp message end. This function must be used only with stream-based transports, otherwise it will always return EFalse.
const TDesC8 & aMessage |
TBool | IsSigCompMsg | ( | const TDesC8 & | aMessage | ) | const [pure virtual] |
Checks if the first byte contains bit pattern indicating the start of the SigComp message. Function examines only the first byte.
const TDesC8 & aMessage |
TBool | IsSupported | ( | ) | const [pure virtual] |
Checks if signalling compression is installed.
void | RemoveCompartment | ( | TUint32 | aCompartmentId | ) | [pure virtual] |
Removes compression for passed compartmentId. If no compression for the host was found, the function silently returns.
TUint32 aCompartmentId |
void | SendFailedL | ( | TUint32 | aCompartmentId | ) | [pure virtual] |
If the compartment has been previously used for decompressing, resets the compartment. If not, deletes the compartment.
TUint32 aCompartmentId | the IAP for which the sending failed |
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.