williamr@4: // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: // All rights reserved. williamr@4: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@4: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: // williamr@4: // Initial Contributors: williamr@4: // Nokia Corporation - initial contribution. williamr@4: // williamr@4: // Contributors: williamr@4: // williamr@4: // Description: williamr@4: // contains the inline functions of the RSmsSocketBuf class williamr@4: // williamr@4: // williamr@4: williamr@4: /** williamr@4: @file williamr@4: williamr@4: @return how much the socket is lagging for read williamr@4: If positive the buffer needs to read more from the socket in order to be synchronised williamr@4: @publishedAll williamr@4: williamr@4: */ williamr@4: inline TInt RSmsSocketBuf::Lag(TRead) const williamr@4: { williamr@4: return Ptr(ERead)-End(ERead); williamr@4: } williamr@4: williamr@4: williamr@4: /** williamr@4: * @return how much the socket is lagging for write williamr@4: * If positive the buffer need to write more to the socket in order to be synchronised williamr@4: */ williamr@4: inline TInt RSmsSocketBuf::Lag(TWrite) const williamr@4: { williamr@4: return Ptr(EWrite)-iBuffer; williamr@4: }