wapstack/wapmessageapi/sws/WapMsgUtils.h
author srilekhas <srilekhas@symbian.org>
Fri, 17 Sep 2010 17:35:51 +0100
branchRCL_3
changeset 71 b10722dbe19e
parent 18 50bae5c5c85f
permissions -rw-r--r--
Merge RCL_3 fix to Bug 1398 with the latest delivery.

// Copyright (c) 2003-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:
// Utilities 
// 
//

#ifndef __CSWSWAPMSGUTILS_H__ 
#define __CSWSWAPMSGUTILS_H__

#include <e32base.h>
#include <e32std.h>
#include <es_sock.h>
#include <wapmessage.h>

const TInt KWapStackMaxDatagramSize = 4000;
const TInt KWapStackNorminalDatagramSize = 4000;



class CSWSWapMsgUtils : public CBase
/** 
Provide a set of static function which to be used by SWS. Contains the functions to build a
specific socket address from given parameters, analyse a specific socket address, and to
determine the SMS bearer type, GSM.
@internalComponent
@released
@since v8.0
*/
	{
public:
	// Returns the current local address, a null pointer must be passed in, buffer ownership is given to the client
	static TInt GetLocalAddress(HBufC8*& aLocalHost);
	static void BuildAddrL(TSockAddr& aAddr, Wap::TBearer aBearer, const TDesC8& aRemoteHost, Wap::TPort aRemotePort);
	static void AnalyseAddrL(TSockAddr& aAddr, Wap::TBearer aBearer, TDes8& aRemoteHost, Wap::TPort& aRemotePort);

	};

#endif //__CSWSWAPMSGUTILS_H__