testexecmgmt/ucc/RemoteInterface/inc/CTCPTransport.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CTCPTRANSPORT_H__
       
    21 #define __CTCPTRANSPORT_H__
       
    22 
       
    23 #include <winsock2.h>
       
    24 #include "MUCCTransport.h"
       
    25  
       
    26 class CTCPTransport : public MUCCTransport
       
    27 	{
       
    28 public:
       
    29 	// construction
       
    30 	CTCPTransport();
       
    31 	virtual ~CTCPTransport();
       
    32 	virtual int Connect( const string &aDestination );
       
    33 	virtual void Disconnect();
       
    34 	virtual int RequestSend( const char* aData, const int aLength );
       
    35 	virtual int RequestReceive( char *aBuff, const int aLength );
       
    36 
       
    37 private:
       
    38 	SOCKET		iSocket;
       
    39 	};
       
    40 
       
    41 
       
    42 #endif // __CTCPTRANSPORT_H__