networksecurity/ipsec/te_ipsec_selector_confilict/inc/te_selectorconflict.h
branchRCL_3
changeset 58 8d540f55e491
parent 53 7e41d162e158
equal deleted inserted replaced
57:abbed5a4b42a 58:8d540f55e491
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Connection Test Step Header
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20 */
       
    21 #ifndef __TEF_IPSEC_SELECTORCONFLICT_H__
       
    22 #define __TEF_IPSEC_SELECTORCONFLICT_H__
       
    23 
       
    24 #include <es_sock.h>
       
    25 #include <e32base.h> 
       
    26 #include <testexecutestepbase.h>
       
    27 //local includes here
       
    28 #include "te_IPSec_Load_Policy_Base.h"
       
    29 
       
    30 //---------------------------------------------------------------------------
       
    31 class CT_SelectorConflict : public CTimer
       
    32 {
       
    33 public:
       
    34 	~CT_SelectorConflict();
       
    35 	static CT_SelectorConflict* NewL(int aIapId);
       
    36 	void RecvUDP();
       
    37 	void SendTcpPacketL();
       
    38 	void RecvTcpPacketL();
       
    39 	void ConnectL(TInt aPort, TPtrC16 aIpDAddr);
       
    40 	void Close();		
       
    41 	void delay(CT_IPSec_Load_Policy_Base *aBase, TInt KDelayTime);
       
    42 	TBool GetKeepAlive();	
       
    43 	void SetKeepAlive( TBool aKeepAlivetimeout);	
       
    44 	void start(int aIapId);
       
    45 
       
    46 private:
       
    47 	CT_SelectorConflict();
       
    48 	void ConstructL(int aIapId);
       
    49 
       
    50 	void RunL();
       
    51 	void DoCancel();	
       
    52 	TInt RunError(TInt /*aError*/);
       
    53 private:    
       
    54     RSocketServ     iSs;
       
    55     RSocket         iSock;
       
    56     RSocket         iRecvSock;
       
    57     RConnection     iConn;
       
    58     TBuf8<256>      iRecvBuf;
       
    59     TSockAddr       iSenderAddr;
       
    60     TSockXfrLength  iBytesRead;
       
    61 	TBool iKeepalive;
       
    62 	CT_IPSec_Load_Policy_Base *iPtrKeepAlive; 
       
    63 public :
       
    64 	static CT_SelectorConflict *iSelfPtr;
       
    65 };
       
    66 
       
    67 #endif// __TEF_IPSEC_SELECTORCONFLICT_H__
       
    68