|
1 // Copyright (c) 2004-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // eintsockimpl.inl |
|
15 // @file |
|
16 // @internalTechnology |
|
17 // |
|
18 // |
|
19 |
|
20 |
|
21 inline TInt CInternalSocketImpl::Return () const |
|
22 { |
|
23 return iReturn; |
|
24 } |
|
25 |
|
26 |
|
27 inline CommsFW::TWorkerId CInternalSockSubSession::ClientWorkerId() const |
|
28 { |
|
29 return iClientWorkerId; |
|
30 } |
|
31 |
|
32 inline CommsFW::TWorkerId CInternalSockSubSession::ServerWorkerId() const |
|
33 { |
|
34 return iServerCookie.Thread(); |
|
35 } |
|
36 |
|
37 inline CommsFW::MCommsTransportSender* CInternalSockSubSession::Sender() const |
|
38 { |
|
39 return iSender; |
|
40 } |
|
41 |
|
42 inline TInt CInternalSockSubSession::SendReceiveMsg(Den::TWorkerTransportMsg& aMsg) |
|
43 { |
|
44 return SendReceiveMsg(aMsg, Sender(), iServerCookie); |
|
45 } |
|
46 |
|
47 inline void CInternalSockSubSession::SendMsg(Den::TWorkerTransportMsg& aMsg) |
|
48 { |
|
49 SendMsg(aMsg, Sender(), iServerCookie); |
|
50 } |
|
51 |
|
52 |
|
53 inline void CInternalSockSubSession::SetSender(CommsFW::MCommsTransportSender* aSender) |
|
54 { |
|
55 iSender = aSender; |
|
56 } |
|
57 |
|
58 inline TInt CInternalSockSubSession::CheckPolicy(const TSecurityPolicy& /*aPolicy*/, const char* /*aDiagnostic*/) |
|
59 { |
|
60 // With our current architecture we cannot meaningfully support security checking: protocols are by design unaware |
|
61 // of client identity and so unable validate such requests from another protocol. In principle the request could |
|
62 // get passed all the way back to the real CSocket (presuming that it ever corresponded to a client request) but |
|
63 // the protocol would have to preserve the origin of data through to its bottom layer, eg the NIF for the IP stack, |
|
64 // which is currently done |
|
65 return KErrNone; |
|
66 } |
|
67 |
|
68 inline CInternalSockSubSession::TGlobals* CInternalSockSubSession::Globals(TTransportUserStorage& aStorage) |
|
69 { |
|
70 return reinterpret_cast<TGlobals*>(aStorage.Ptr()); |
|
71 } |
|
72 |
|
73 inline TInt CInternalSockSubSession::LinkOffset() |
|
74 { |
|
75 return _FOFF(CInternalSockSubSession, iLink); |
|
76 } |
|
77 |
|
78 inline void CIntSocketMessage::SetMessage ( TEIntSockOpMsgWrapper& aMessage ) |
|
79 { |
|
80 iMessage = aMessage; |
|
81 } |
|
82 |
|
83 inline TEIntSockOpMsgWrapper& CIntSocketMessage::Message () |
|
84 { |
|
85 return iMessage; |
|
86 } |
|
87 |
|
88 |