This release addresses the following issues:
1. The crash bug fix when receiving file
2. Now the sending is based on MSRP messages, there is no longer file receiving or sending. Client sends data as MSRP was designed.
3. Soma MSRP stack was created so that the client told the correct session-id, Symbian stack generated it by itself. This is not allowed, it was changed so that clients tell the session-id (same as used in SIP INVITE).
4. Unnecessary division of data to chunks removed when there is no need to interrupt sending. The message is sent in as few chunks as possible.
5. Stack can now receive files and chunks with ?unlimited? size. Old stack wrote the incoming data to memory and did not utilize disk space until the end of chunk was reached (large chunks from another client crashed it).
6. Now when writing the incoming data to file, it will take into account the byte-range header values. So, this complies with the RFC4975 requirements that stack must be able to handle chunks that come in any sequence.
7. Some buffering changes to outgoing/incoming data.
8. The outgoing data is now checked that it does not contain the created transaction-id before sending the data.
9. MSRP success reports are now implemented and tested against servers.
10. Progress report system fixed so progress is now visible on client (all the way to 100%).
11. Message Cancel receiving / Cancel sending now corrected and made to work as rfc4975 requires. (termination from sender and error code from receiver when cancelling).
12. Bug correction related to messages received not belonging to any session, old stack implementation did send error response, but after response was written it did give the buffer to client anyway. Now corrected.
/*
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Name : TransactionTimer.h
* Part of : Transaction
* Version : SIP/6.0
*
*/
/**
@internalComponent
*/
#ifndef TRANSACTIONTIMER_H
#define TRANSACTIONTIMER_H
// INCLUDES
#include "TimerBase.h"
#include <stringpool.h>
// FORWARD DECLARATIONS
class CSIPResponse;
class TSIPTransportParams;
class CTransaction;
// CLASS DECLARATION
class CTransactionTimer : public CTimerBase
{
public: // Destructor
virtual ~CTransactionTimer() {}
public: // New functions
/**
* Handle the timer expiration.
*
* @param aTransaction Transaction whose timer expired
* @param aTimerId Timer identifier
*/
virtual void ExpiredL(CTransaction& aTransaction, TTimerId aTimerId) = 0;
protected: // Constructor
/**
* Creates a timer and starts it. Since there is no StartL() function in
* the CTransactionTimer, if a timer is stopped, it can't be restarted.
*
* @pre aObserver != NULL
*
* @param aTimerMgr Timer subsystem
* @param aObserver Callback for handling timer expiration. Ownership isn't
* transferred.
* @param aDuration Timer duration, in milliseconds
*/
CTransactionTimer(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration);
};
/*
* When this timer expires, client transaction retransmits the previously sent
* SIP request.
*/
class CTimerRetransmit : public CTransactionTimer
{
public: // Enumerations
enum TRetransmitTimerDuration
{
// Retransmission interval for sending INVITE using UDP to keep a NAT
// binding alive. Unit is milliseconds.
KNATBindingInterval = 28000
};
public: // Constructor
static CTimerRetransmit* NewL(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration);
public: // From CTransactionTimer
void ExpiredL(CTransaction& aTransaction, TTimerId aTimerId);
private: // Constructor, for internal use
CTimerRetransmit(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration);
};
/*
* When this timer expires, transaction will terminate.
*/
class CTimerTerminateTa : public CTransactionTimer
{
public: // Enumerations
enum TTransactionTimerDuration
{
// How long INVITE client transaction waits in proceeding state.
// Unit is milliseconds.
KProceedingTimerDuration = 300000
};
public: // Constructor
static CTimerTerminateTa* NewL(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration,
TInt aReason = KErrNone);
public: // From CTransactionTimer
void ExpiredL(CTransaction& aTransaction, TTimerId aTimerId);
private: // Constructor, for internal use
CTimerTerminateTa(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration,
TInt aReason);
private: // Data
//Reason value which is passed to CTransaction::TerminatedL() when the
//timer expires
TInt iReason;
};
/*
* When this timer expires, server transaction sends a 100 response.
*/
class CTimerSend100 : public CTransactionTimer
{
public: // Constructor and destructor
/**
* Creates the timer and starts it timer.
*
* @pre aObserver != NULL
* @pre aResponse != NULL
*
* @param aTimerMgr Timer subsystem
* @param aObserver Callback handling the timer expiration, ownership is
* not transferred.
* @param aDuration Duration until timer expires.
* @param aResponse SIP response, ownership is transferred.
* @param aTransportProtocol Transport protocol to use when sending the
* response.
* @param aTransportParams Parameters to use when sending the response.
*/
static CTimerSend100* NewL(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration,
CSIPResponse* aResponse,
RStringF aTransportProtocol,
TSIPTransportParams& aTransportParams);
~CTimerSend100();
public: // From CTransactionTimer
void ExpiredL(CTransaction& aTransaction, TTimerId aTimerId);
private: // Constructor, for internal use
CTimerSend100(MTimerManager& aTimerMgr,
MExpirationHandler* aObserver,
TUint32 aDuration,
RStringF aTransportProtocol,
TSIPTransportParams& aTransportParams);
private: // Data
// Owned
CSIPResponse* iResponse;
RStringF iTransportProtocol;
TSIPTransportParams& iTransportParams;
#ifdef CPPUNIT_TEST
friend class CTransactionUser_Test;
#endif
};
#endif // end of TRANSACTIONTIMER_H
// End of File