Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 1997-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.
18 inline CWorkerThread& CSocketServer::WorkerThread() const
23 inline TWorkerId CSocketServer::WorkerId() const
25 return WorkerThread().WorkerId();
32 inline const CDealer& CSockSession::Dealer() const
34 // NB: this is really only a static_cast<> but the Gordian knot of class dependencies results in a forward
36 return *reinterpret_cast<const CDealer*>(Server());
39 inline CSubSessionIx& CSockSession::SubSessions()
44 inline const CSubSessionIx& CSockSession::SubSessions() const
49 inline TSockManData* CSockSession::SockManGlobals() const
51 return WorkerThread().SockManGlobals();
58 inline void CSockSubSession::Open()
63 inline void CSockSubSession::Close()
66 ASSERT(iAccessCount >= 0);
73 inline TInt CSockSubSession::AccessCount() const
78 inline CSockSession* CSockSubSession::Session()
84 inline CPlayer& CSockSubSession::Player() const
90 #ifdef SYMBIAN_NETWORKING_PERFMETRICS
91 inline void CSockSubSession::IncludePerformanceData(TInt aDeltaClientRxBytes, TInt aDeltaClientRxBuffBytes, TInt aDeltaClientTxBytes)
93 iSession->IncludePerformanceData(aDeltaClientRxBytes, aDeltaClientRxBuffBytes, aDeltaClientTxBytes);
98 inline const RMessage2& CSockSession::Message() const
103 inline void CSockSession::CompleteDisconnect()
105 RMessage2 dm = iDisconnectMessage;
106 inherited::Disconnect(dm);
110 inline void CSocketScheduler::SetGlobals(TSockManData* aGlobals)
112 static_cast<CSocketScheduler*>(CActiveScheduler::Current())->iGlobals = aGlobals;
115 //inline void CSocketScheduler::SetWaitHook(TCallBack* aCall)
116 // { ((CSocketScheduler*)CActiveScheduler::Current())->iWaitHook=aCall; }
118 inline TSockManData* CSocketScheduler::Globals()
120 return static_cast<CSocketScheduler*>(CActiveScheduler::Current())->iGlobals;
128 Optional locking. When accessing any of the public methods of this class in a multithreaded
129 environment, locking is often necessary. This lock does not allow for lock nesting.
131 inline void CSubSessionIx::Lock() const
140 inline void CSubSessionIx::Unlock() const
146 @return the number of active sub-sessions in the container.
148 inline TInt CSubSessionIx::ActiveCount() const