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