MSigCompController Class Reference
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) |
Constructor & Destructor Documentation
~MSigCompController()
~MSigCompController | ( | ) | [inline, virtual] |
Member Functions Documentation
AllowL(const TInetAddr &, TUint32)
Allows the state of the decompressed message to be saved; leaves on failure.
CompartmentCount()
TInt
| CompartmentCount | ( | ) | [pure virtual] |
The function returns count of compartments
CreateCompartmentL(TUint32)
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.
DecompressL(const TDesC8 &, TUint &, TBool)
Decompress the message; leaves on failure. Leaves with a system wide error decompressing fails. The function expects the client to provide complete SigComp message.
Parameters
const TDesC8 & aMessage | a message to decompress. The message must start with SigComp specific delimeter and end with SigComp specific delimeter |
TUint & aBytesConsumed | on return will contain the number of bytes consumed by the decompression from the original message |
TBool aIsStreamBased | |
Deny()
Denies the state of the message to be saved.
EncodeL(const TSIPTransportParams &, CSIPRequest &, const TInetAddr &, TBool, TBool &)
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.
EncodeL(const TSIPTransportParams &, CSIPResponse &, const TInetAddr &, TBool, TBool &)
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.
IsCompleteSigCompMessageL(const TDesC8 &)
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.
IsSigCompMsg(const TDesC8 &)
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.
IsSupported()
TBool
| IsSupported | ( | ) | const [pure virtual] |
Checks if signalling compression is installed.
RemoveCompartment(TUint32)
void | RemoveCompartment | ( | TUint32 | aCompartmentId | ) | [pure virtual] |
Removes compression for passed compartmentId. If no compression for the host was found, the function silently returns.
SendFailedL(TUint32)
void | SendFailedL | ( | TUint32 | aCompartmentId | ) | [pure virtual] |
If the compartment has been previously used for decompressing, resets the compartment. If not, deletes the compartment.
Parameters
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.