btobexprofiles/obexsendservices/obexservicesendutils/src/BTServiceClient.cpp
changeset 52 4545c04e61e1
parent 37 91746b151f97
child 57 5ebadcda06cb
equal deleted inserted replaced
41:0b2439c3e397 52:4545c04e61e1
     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