hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/MProtocolObserverTCP.h
branchRCL_3
changeset 59 8ad140f3dd41
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  TCP protocol specific callback functions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPROTOCOLOBSERVERTCP_H
       
    21 #define MPROTOCOLOBSERVERTCP_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 #include "MProtocolObserver.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Events for protocol.
       
    32 */
       
    33 NONSHARABLE_CLASS( MProtocolObserverTCP ) : public MProtocolObserver
       
    34     {
       
    35 
       
    36     public: // Abstract functions
       
    37 
       
    38         /**
       
    39         * TCP Frame has been parsed.
       
    40         * @param aPort Port number parsed from received frame.
       
    41         * @param aData Data parsed from received frame.
       
    42         */
       
    43         virtual void TCPFrameParsedL(
       
    44             TUint aPort,
       
    45             const TDesC8& aData ) = 0;
       
    46 
       
    47         /**
       
    48         * Open a TCP connection to phone side port
       
    49         * @param aPort Port number where to connect
       
    50         */
       
    51         virtual void OpenLocalTCPConnectionL( TUint aPort ) = 0;
       
    52 
       
    53         /**
       
    54         * Open a listening TCP port on the phone side
       
    55         * @param aPort Port number where to start listening
       
    56         */
       
    57         virtual void OpenListeningTCPConnectionL( TUint aPort ) = 0;
       
    58 
       
    59         /**
       
    60         * Close a TCP connection
       
    61         * @param aPort Remote port number to close
       
    62         */
       
    63         virtual void CloseTCPConnectionL( TUint aPort ) = 0;
       
    64 
       
    65         /**
       
    66         * Close all TCP connections from listening & connecting ports
       
    67         */
       
    68         virtual void CloseAllTCPConnections() = 0;
       
    69     };
       
    70 
       
    71 #endif      // MPROTOCOLOBSERVERTCP_H
       
    72 
       
    73 // End of File