ProtocolManager Class Reference
Public Member Functions
|
CProtocolBase
*
|
FindAndLoadProtocolL
(const
TDesC
&,
TProtocolType
)
|
CProtocolBase
*
|
FindAndLoadProtocolL
(
TUint
,
TUint
,
TUint
)
|
TBool
|
GetDependency
(const
TDesC
&,
TPtrC
&)
|
void
|
InitL
()
|
void
|
LoadProtocolL
(
TUint
,
TUint
,
TUint
,
CPlayer
*)
|
ESock::CHostResolver *
|
NewHostResolverL
(
TUint
,
TUint
,
CPlayer
*, const
TSubSessionUniqueId
)
|
CInternalSocketImpl *
|
NewInternalSocketL
(
TAny
*, const
TDesC
&)
|
CInternalSocketImpl *
|
NewInternalSocketL
(
TAny
*,
TUint
,
TUint
,
TUint
)
|
ESock::CNetDatabase *
|
NewNetDatabaseL
(
TUint
,
TUint
,
CPlayer
*, const
TSubSessionUniqueId
)
|
ESock::CServiceResolver *
|
NewServiceResolverL
(
TUint
,
TUint
,
TUint
,
CPlayer
*, const
TSubSessionUniqueId
)
|
TUint
|
NumProtocols
(void)
|
void
|
ProcessIniDataL
()
|
TInt
|
ProtocolInfo
(
TUint
,
TProtocolDesc
&)
|
TInt
|
ProtocolInfo
(const
TDesC
&,
TProtocolDesc
&)
|
TInt
|
ProtocolInfo
(const
TDesC
&,
TServerProtocolDesc
&)
|
void
|
TransferSocketL
(ESock::CSocket *,
CPlayer
*)
|
void
|
UnLoadProtocolL
(
TUint
,
TUint
,
TUint
,
CPlayer
*)
|
Member Functions Documentation
AddDependencyL(const TDesC &, const TDesC &)
void
|
AddDependencyL
|
(
|
const
TDesC
&
|
aDependentsList,
|
|
const
TDesC
&
|
aModuleToLoad
|
|
)
|
[private, static]
|
Adds a module to the dependency list. Dependency list is of form b,c<d>e,f meaning that module "a" is dependant on "b" and "c" and requires module b and c to be loaded.
Parameters
const
TDesC
& aDependentsList
|
list of dependant components to be loaded
|
const
TDesC
& aModuleToLoad
|
The module for which the dependency is added
|
CleanupProtocol(TAny *)
void
|
CleanupProtocol
|
(
|
TAny
*
|
aProtocol
|
)
|
[private, static]
|
FindAndLoadProtocolL(const TDesC &, TProtocolType)
Find a protocol by name and load it. Caller is responsible for ultimately deleting the protocol
This is for use by extension DLLs as it does not attach the protocol to a session.
FindAndLoadProtocolL(TUint, TUint, TUint)
Find a protocol by address family, socket type, and protocol ID and load it. Caller is responsible for ultimately deleting the protocol
This is for use by extension DLLs as it does not attach the protocol to a session.
FindProtocolL(TInt, TUint, TInt)
CProtocolRef *
|
FindProtocolL
|
(
|
TInt
|
anAddrFamily,
|
|
TUint
|
aSocketType,
|
|
TInt
|
aProtocol
|
|
)
|
[private, static]
|
Find a protocol from the lists.
GetDependency(const TDesC &, TPtrC &)
Goes through the dependency list and gets the dependant modules for aTag
Parameters
const
TDesC
& aTag
|
The protocol tag based on which the dependancy list is searched
|
TPtrC
& aList
|
A list of components dependant on aTag protocol which are returned
|
InitL()
Init data structures and hunt for protocols.
LoadProtocolL(TUint, TUint, TUint, CPlayer *)
Manually load the specified protocol This is used by clients who need to ensure that an open call will not take a significant amount of time (e.g. IrCOMM) It effectively makes all the lengthy parts of Open asynchronous.
NewHostResolverL(TUint, TUint, CPlayer *, const TSubSessionUniqueId)
Create a new host resolver object
NewInternalSocketL(TAny *, const TDesC &)
CInternalSocketImpl *
|
NewInternalSocketL
|
(
|
TAny
*
|
aParams,
|
|
const
TDesC
&
|
aName
|
|
)
|
[static]
|
NewInternalSocketL(TAny *, TUint, TUint, TUint)
CInternalSocketImpl *
|
NewInternalSocketL
|
(
|
TAny
*
|
aParams,
|
|
TUint
|
aAddrFamily,
|
|
TUint
|
aSockType,
|
|
TUint
|
aProtocol
|
|
)
|
[static]
|
NewNetDatabaseL(TUint, TUint, CPlayer *, const TSubSessionUniqueId)
Create a new database type thang
NewServiceResolverL(TUint, TUint, TUint, CPlayer *, const TSubSessionUniqueId)
Create a new service resolver provider
NumProtocols(void)
TUint
|
NumProtocols
|
(
|
void
|
|
)
|
[static]
|
ProcessIniDataL()
void
|
ProcessIniDataL
|
(
|
)
|
[static]
|
ProtocolInfo(TUint, TProtocolDesc &)
ProtocolInfo(const TDesC &, TProtocolDesc &)
ProtocolInfo(const TDesC &, TServerProtocolDesc &)
Find a protocol by name - no wildcard support.
SafeCleanupProtocol(TAny *)
void
|
SafeCleanupProtocol
|
(
|
TAny
*
|
aProtocolRef
|
)
|
[private, static]
|
Try to clean up a protocol instance
This routine is pushed onto the cleanup stack in order to clean up a protocol instance. The check against the protocol pointer being non-NULL is a safety check. This routine was created because ProtocolManager::CleanupProtocol(protocol) was being called in circumstances where the protocol had already gone and the pointer to it had become invalid. This routine takes as argument a pointer to the CProtocolRef instance of the protocol, so that the protocol pointer can be checked against NULL.
Parameters
TAny
* aProtocolRef
|
pointer to the CProtocolRef instance whose protocol needs to be deleted
|
ShutDown(void)
void
|
ShutDown
|
(
|
void
|
|
)
|
[private, static]
|
TransferSocketL(ESock::CSocket *, CPlayer *)
void
|
TransferSocketL
|
(
|
ESock::CSocket *
|
aSocket,
|
|
CPlayer
*
|
aPlayer
|
|
)
|
[static]
|
Parameters
ESock::CSocket * aSocket
|
|
CPlayer
* aPlayer
|
|
UnLoadProtocolL(TUint, TUint, TUint, CPlayer *)
Do the opposite of the above function
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.