natfw/natfwconnectionmultiplexer/inc/cncmtcpsender.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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 sender
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_CNCMTCPSENDER_H
       
    22 #define C_CNCMTCPSENDER_H
       
    23 
       
    24 #include "cncmsender.h"
       
    25 
       
    26 
       
    27 /**
       
    28  *  TCP sender
       
    29  *
       
    30  *  @lib connectionmux.lib
       
    31  *  @since S60 v3.2
       
    32  */
       
    33 NONSHARABLE_CLASS( CNcmTcpSender ) : public CNcmSender
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Two-phased constructor
       
    40      *
       
    41      * @param   aSocket             RSocket
       
    42      * @param   aObserver           Observer
       
    43      */
       
    44     static CNcmTcpSender *NewL( RSocket& aSocket,
       
    45         MNcmReceiverSenderObserver& aObserver );
       
    46     
       
    47     /**
       
    48      * Two-phased constructor
       
    49      *
       
    50      * @param   aSocket             RSocket
       
    51      * @param   aObserver           Observer
       
    52      */
       
    53     static CNcmTcpSender *NewLC( RSocket& aSocket,
       
    54         MNcmReceiverSenderObserver& aObserver );
       
    55     
       
    56     /**
       
    57      * Destructor
       
    58      */
       
    59     virtual ~CNcmTcpSender();
       
    60 
       
    61 // from base class CNcmSender
       
    62 
       
    63     /**
       
    64      * Sends iBuffer to iSocket
       
    65      *
       
    66      * @since S60 v3.2
       
    67      * @return void
       
    68      */
       
    69     void DoSend();
       
    70 
       
    71 private:
       
    72 
       
    73     CNcmTcpSender( RSocket& aSocket, MNcmReceiverSenderObserver& aObserver );
       
    74 
       
    75     };
       
    76 
       
    77 
       
    78 #endif // C_CNCMTCPSENDER_H