epoc32/include/es_sock.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/es_sock.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/es_sock.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,106 @@
     1.4 -es_sock.inl
     1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +inline TSockIOBufC::TSockIOBufC()	: TPckgC<TSockIO>(iArgs)
    1.21 +
    1.22 +	{}
    1.23 +
    1.24 +inline TSockOpenBufC::TSockOpenBufC()	: TPckgC<TSockOpen>(iArgs)
    1.25 +
    1.26 +	{}
    1.27 +
    1.28 +inline SSockAddr *TSockAddr::BasePtr() const
    1.29 +/**
    1.30 +This function returns the end point to a connection.
    1.31 +
    1.32 +@return socket address
    1.33 +*/
    1.34 +	{ return (SSockAddr*)iBuf; }
    1.35 +
    1.36 +
    1.37 +inline TUint8 *TSockAddr::UserPtr() const
    1.38 +/** Gets an offset to place data after the base class data. This function is mainly 
    1.39 +intended for use in derived classes.
    1.40 +@return Pointer to derived class intended data area */
    1.41 +	{ return (TUint8*)(BasePtr()+1); }
    1.42 +
    1.43 +inline TUint16 ByteOrder::Swap16(TUint aVal)
    1.44 +/** 
    1.45 +Reverses the order of the bytes in a 16-bit value.
    1.46 +	
    1.47 +@param aVal The value to reverse. 
    1.48 +@return The reversed value. 
    1.49 +*/
    1.50 +	{ return ByteOrder::Swap16((TUint16)aVal); }
    1.51 +
    1.52 +inline TNameRecord::TNameRecord()
    1.53 +	:iName(),iAddr(),iFlags(0)	
    1.54 +/** 
    1.55 +Trivial C++ constructor. This sets the fields in the 
    1.56 +class to suitable default values. 
    1.57 +*/
    1.58 +	{}
    1.59 +
    1.60 +inline TNifProgress::TNifProgress()	:iStage(0), iError(KErrNone) 
    1.61 +/**
    1.62 +It sets the iStage data member to 0 and the iError data member to KErrNone.
    1.63 +*/
    1.64 +	{}
    1.65 +
    1.66 +inline RSubConnection::TEventFilter::TEventFilter(TInt32 aEventGroupId, TUint32 aEventMask)
    1.67 +	: iEventGroupUid(aEventGroupId), iEventMask(aEventMask)
    1.68 +	{
    1.69 +	}
    1.70 +
    1.71 +inline TUint32 CSubConParameterFamily::Id()
    1.72 +/**
    1.73 +Fetch the identity of the sub-connection parameter family
    1.74 +*/
    1.75 +	{
    1.76 +	return iFamilyId;
    1.77 +	}
    1.78 +
    1.79 +inline TAccessPointInfo::TAccessPointInfo(TUint aApId)
    1.80 +/** Initialises the object using the specified 32-bit long integer ID of the access point.
    1.81 +
    1.82 +@param aApId The 32-bit long integer ID of the access point to initialise the object with. */
    1.83 +	{
    1.84 +	iAccessPointId = aApId;
    1.85 +	}
    1.86 +
    1.87 +inline TUint TAccessPointInfo::AccessPoint() const
    1.88 +/** Returns the 32-bit long integer ID of the access point.
    1.89 +
    1.90 +@return The 32-bit long integer ID of the access point. */
    1.91 +	{
    1.92 +	return iAccessPointId;
    1.93 +	}
    1.94 +
    1.95 +inline void TAccessPointInfo::SetAccessPoint(TUint aAccessPoint)
    1.96 +/** Sets the 32-bit long integer ID of the access point.
    1.97 +
    1.98 +@param aAccessPoint The 32-bit long integer ID of the access point. */
    1.99 +	{
   1.100 +	iAccessPointId = aAccessPoint;
   1.101 +	}
   1.102 +	
   1.103 +inline TBool TAccessPointInfo::operator== (const TAccessPointInfo& aRhs) const
   1.104 +/** Compares the 32-bit long integer ID of the specified object with our own.
   1.105 +
   1.106 +@param aRhs The TAccessPointInfo to compare.
   1.107 +@return A boolean value of ETrue if the TAccessPointInfo object has the same ID or false otherwise. */
   1.108 +	{
   1.109 +	return iAccessPointId == aRhs.iAccessPointId;
   1.110 +	}