realtimenetprots/sipfw/SIP/ConnectionMgr/inc/CSenderTcp.h
author hgs
Fri, 14 May 2010 14:57:35 +0300
changeset 22 f1578314b8da
parent 0 307788aac0a8
permissions -rw-r--r--
201019

/*
* Copyright (c) 2007-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          : CSenderTcp.h
* Part of       : ConnectionMgr
* Version       : SIP/5.1
*
*/




/**
 @internalComponent
*/
#ifndef CSENDERTCP_H
#define CSENDERTCP_H

#include "CSender.h"
#include <e32base.h>

class COwnerSettingsList;


class CSenderTcp : public CSender
	{
public:
	static CSenderTcp* NewL(MContext& aContext, COwnerSettingsList& aSettingsList);
	static CSenderTcp* NewLC(MContext& aContext, COwnerSettingsList& aSettingsList);
	~CSenderTcp();
	
	TBool SendL(const TSIPTransportParams& aTransportParams,
	            CSIPMessage& aMessage,
			    const TInetAddr& aAddr,
			    TUint aOrigTransport,
			    TRequestStatus& aStat,
			    TBool aStore,
			    TBool aForceUDP);
	void SendL(const TSIPTransportParams& aTransportParams,
	           CSIPMessage& aMessage, 
	           TRequestStatus& aStat);
	void SendNextL();
	
	COutgoingData* StoredData();
	COutgoingData* Data();	
	
private:
	CSenderTcp(MContext& aContext, COwnerSettingsList& aSettingsList);
	void EncodeAndSendL(const TInetAddr& aAddr);
	TBool HandleFirstSendL(const TSIPTransportParams& aTransportParams,
                           CSIPMessage& aMessage, 
                           const TInetAddr& aAddr, 
                           TUint aOrigTransport, 
                           TRequestStatus& aStat,
                           TBool aStore);
    void DoSend( const TDesC8& aData );
    
	};

#endif // end of CSENDERTCP_H

// End of File