1 // Copyright (c) 2002-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 inline TConnArgBase::TConnArgBase()
24 inline TConnArgBase::TConnArgBase(TUint8 aVersion)
29 @param aVersion, Version number of the connection arguemt.
37 inline TUint8 TConnArgBase::Version() const
39 Responsible for retrieving the version number for the Socket Connection argument.
41 @return version number of the connection arguemt.
47 inline TConnectionInfo::TConnectionInfo()
48 : TConnArgBase(KConnArgVersion1), iIapId(0), iNetId(0)
55 inline TConnectionInfo::TConnectionInfo(TUint32 aIapId, TUint32 aNetId)
56 : TConnArgBase(KConnArgVersion1), iIapId(aIapId), iNetId(aNetId)
63 inline TConnectionInfo::TConnectionInfo(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId)
64 : TConnArgBase(aVersion), iIapId(aIapId), iNetId(aNetId)
71 inline TConnectionInfoV2::TConnectionInfoV2()
72 : TConnectionInfo(KConnArgVersion2, 0, 0)
80 inline TConnectionInfoV2::TConnectionInfoV2(TUint32 aIapId, TUint32 aNetId, TConnectionType aConnectionType)
81 : TConnectionInfo(KConnArgVersion2, aIapId, aNetId), iConnectionType(aConnectionType)
87 @param aConnectionType
92 inline TConnectionInfoV2::TConnectionInfoV2(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId, TConnectionType aConnectionType)
93 : TConnectionInfo(aVersion, aIapId, aNetId), iConnectionType(aConnectionType)
100 @param aConnectionType
105 inline TConnectionType TConnectionInfoV2::ConnectionType()
107 Retrieve the type of socket connection.(version 2)
109 @return type of connection.
112 return iConnectionType;
115 inline TSubConnectionInfo::TSubConnectionInfo()
116 : TConnArgBase(KConnArgVersion2), iSubConnectionUniqueId(0), iConnectionType(EConnectionGeneric), iTimeStarted(0)
123 inline TConnectionClientInfo::TConnectionClientInfo()
124 : iProcessId(), iUid(TUid::Null()), iThreadId()
127 inline TConnectionClientInfo::TConnectionClientInfo(TUint aProcId, TUint aUid, TUint aThreadId)
128 : iProcessId(aProcId), iUid(TUid::Uid(aUid)), iThreadId(aThreadId)
131 inline TConnectionSocketInfo::TConnectionSocketInfo()
132 : iAddressFamily(KAFUnspec), iProtocol(0), iSourceAddress(), iDestinationAddress()
135 inline TConnectionEnumArg::TConnectionEnumArg()
136 : TConnArgBase(KConnArgVersion1), iIndex(0), iCount(0)
139 inline TConnectionGetClientInfoArg::TConnectionGetClientInfoArg()
140 : TConnArgBase(KConnArgVersion1), iIndex(0), iClientInfo()
143 inline TConnectionGetSocketInfoArg::TConnectionGetSocketInfoArg()
144 : TConnArgBase(KConnArgVersion1), iIndex(0), iSocketInfo()