localconnectivityservice/obexsendservices/obexservicesendutils/src/BTServiceClient.cpp
branchRCL_3
changeset 38 3dcb815346df
parent 0 c3e98f10fcf4
equal deleted inserted replaced
37:7e0ecb5b116a 38:3dcb815346df
     1 /*
     1 /*
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    23 #include "BTServiceClient.h"
    23 #include "BTServiceClient.h"
    24 #include "BTServiceUtils.h"
    24 #include "BTServiceUtils.h"
    25 #include "BTConnectionTimer.h"
    25 #include "BTConnectionTimer.h"
    26 #include "BTSUDebug.h"
    26 #include "BTSUDebug.h"
    27 
    27 
    28 const TUint16 KMtuSizeReceiv    = 0xFFFF;  // 64kB
    28 const TUint16 KMtuSizeReceiv    = 0xFFFF;	// 64kB - 1 (65535)
    29 const TUint16 KMtuSizeTrans     = 0x3000;  // 12kB 
    29 const TUint16 KMtuSizeTrans     = 0x8000;	// 32kB
    30 const TInt    KBufferSize       = 0x4000;  // 16kB
    30 const TInt    KBufferSize       = 0x8000;	// 32kB
    31 
    31 
    32 const TInt KBTConnectionTimeout = 20000000; // 20 seconds
    32 const TInt KBTConnectionTimeout = 20 * 1000 * 1000;	// 20 seconds
    33 const TInt KBTAbortTimeout      = 2000000;  // 20 seconds
    33 const TInt KBTAbortTimeout      = 2 * 1000 * 1000;	// 2 seconds
    34 
    34 
    35 // CONSTANTS
    35 // CONSTANTS
    36 
    36 
    37 // ============================ MEMBER FUNCTIONS ===============================
    37 // ============================ MEMBER FUNCTIONS ===============================
    38 
    38 
   401         bytesSent = iPutObject->BytesSent();
   401         bytesSent = iPutObject->BytesSent();
   402         }
   402         }
   403 
   403 
   404     FTRACE(FPrint(_L("[BTSU]\t CBTServiceClient::GetProgressStatus() completed, bytes sent %d"), iTotalBytesSent + bytesSent ) );
   404     FTRACE(FPrint(_L("[BTSU]\t CBTServiceClient::GetProgressStatus() completed, bytes sent %d"), iTotalBytesSent + bytesSent ) );
   405 
   405 
   406     return iTotalBytesSent + bytesSent;
   406    // return iTotalBytesSent + bytesSent;
       
   407     return bytesSent;
   407     }
   408     }
   408 
   409 
   409 // -----------------------------------------------------------------------------
   410 // -----------------------------------------------------------------------------
   410 // CBTServiceClient::GetUserPasswordL
   411 // CBTServiceClient::GetUserPasswordL
   411 // -----------------------------------------------------------------------------
   412 // -----------------------------------------------------------------------------