CSuplConnection Class Reference
class CSuplConnection : public CActive |
CSuplConnection is a wrapper around the underlying socket SUPL Session uses this object to send
This provides the methods to create and destroy for SUPL Connection Provides method to handle incoming packets from the network
EPosSuplProtocolHandlerPlugin.dll
- Since
- Series 60 3.1M //e.g. Series 60 3.0
Public Member Functions |
---|
IMPORT_C void | CancelConnect(TRequestStatus &) |
IMPORT_C void | CancelListenToMessages() |
IMPORT_C void | CancelSend(TRequestStatus &) |
IMPORT_C void | CloseConnection() |
IMPORT_C void | Connect(TRequestStatus &) |
void | DecrRefCount() |
void | Destroy() |
IMPORT_C TInt | GetLocalIPAddress(TInetAddr &) |
IMPORT_C TInt | GetPortNumberUsed() |
void | GetPskL(const HBufC8 *, HBufC8 *&, HBufC8 *&) |
const TDesC & | HostAddress() |
void | IncRefCount() |
IMPORT_C TInt | ListenToMessages() |
CSuplConnection * | NewL(RSocketServ &, const TDesC &, const TUint, const TInt, MSuplPacketNotifier *) |
CSuplConnection * | NewL(RSocketServ &, const TDesC &, const TUint, const TInt, TBool, TBool, MSuplPacketNotifier *) |
TUint
| Port() |
TInt
| RefCount() |
IMPORT_C void | Send(const TDesC8 &, TRequestStatus &) |
void | TimerExpired() |
Private Member Functions |
---|
| CSuplConnection(RSocketServ &) |
void | ConstructL(const TDesC &, const TUint, const TInt, MSuplPacketNotifier *) |
void | ConstructL(const TDesC &, const TUint, const TInt, TBool, TBool, MSuplPacketNotifier *) |
void | GeneratePskIdentityL(CRepository *, TInt, HBufC8 *&) |
void | GeneratePskKeyL(CRepository *, const TDesC8 &, HBufC8 *&, TInt) |
void | GeneratePsk_Identity_KeyL(const TDesC8 &, const TDesC8 &, HBufC8 *&, HBufC8 *&) |
void | LogPskKeyInfoL(const HBufC8 *, HBufC8 *, HBufC8 *) |
void | PrintHex(const TDesC8 &, TInt) |
void | SetVariation() |
Constructor & Destructor Documentation
CSuplConnection(RSocketServ &)
~CSuplConnection()
~CSuplConnection | ( | ) | [protected, virtual] |
Member Functions Documentation
CancelConnect(TRequestStatus &)
CancelConnect.
- Since
- Series 60 5.0
CancelListenToMessages()
IMPORT_C void | CancelListenToMessages | ( | ) | |
CancelSend(TRequestStatus &)
CancelSend.
- Since
- Series 60 3.1
CheckForOutstandingPackets()
void | CheckForOutstandingPackets | ( | ) | [protected] |
CloseConnection()
IMPORT_C void | CloseConnection | ( | ) | |
CompleteConnectCancel(TRequestStatus &)
CompleteConnectRequests(TInt)
void | CompleteConnectRequests | ( | TInt | err | ) | [protected] |
Connect(TRequestStatus &)
Connect.
- Since
- Series 60 3.1
Connect()
A method that makes Socket Connection.
- Since
- Series 60 3.1
ConnectIAP()
void | ConnectIAP | ( | ) | [protected] |
A method that makes Socket Connection.
- Since
- Series 60 3.1
ConstructL(const TDesC &, const TUint, const TInt, MSuplPacketNotifier *)
By default Symbian 2nd phase constructor is private.
ConstructL(const TDesC &, const TUint, const TInt, TBool, TBool, MSuplPacketNotifier *)
DecrRefCount()
DecrRefCount.
- Since
- Series 60 3.1
Destroy()
Destroy.
- Since
- Series 60 3.1
DoCancel()
void | DoCancel | ( | ) | [protected, virtual] |
From CActive To cancel the asynchronous requests
GeneratePskIdentityL(CRepository *, TInt, HBufC8 *&)
GeneratePskKeyL(CRepository *, const TDesC8 &, HBufC8 *&, TInt)
GeneratePsk_Identity_KeyL(const TDesC8 &, const TDesC8 &, HBufC8 *&, HBufC8 *&)
void | GeneratePsk_Identity_KeyL | ( | const TDesC8 & | aVer, |
| const TDesC8 & | aPassword, |
| HBufC8 *& | aPskIdentity, |
| HBufC8 *& | aPskKey |
| ) | [private] |
GetLocalIPAddress(TInetAddr &)
GetLocalIPAddress.
- Since
- Series 60 3.1
GetPortNumberUsed()
IMPORT_C TInt | GetPortNumberUsed | ( | ) | |
GetPskL(const HBufC8 *, HBufC8 *&, HBufC8 *&)
HostAddress()
const TDesC & | HostAddress | ( | ) | |
HostAddress.
- Since
- Series 60 3.1
IncRefCount()
IncRefCount.
- Since
- Series 60 3.1
ListenToMessages()
IMPORT_C TInt | ListenToMessages | ( | ) | |
ListenToMessages.
- Since
- Series 60 3.1
LogPskKeyInfoL(const HBufC8 *, HBufC8 *, HBufC8 *)
void | LogPskKeyInfoL | ( | const HBufC8 * | aPskIdentityHint, |
| HBufC8 * | aPskIdentity, |
| HBufC8 * | aPskKey |
| ) | [private] |
MakeSecureConnection()
void | MakeSecureConnection | ( | ) | [protected] |
A method that makes Socket Secure.
- Since
- Series 60 3.1
NewL(RSocketServ &, const TDesC &, const TUint, const TInt, MSuplPacketNotifier *)
NewL(RSocketServ &, const TDesC &, const TUint, const TInt, TBool, TBool, MSuplPacketNotifier *)
Port()
Port.
- Since
- Series 60 3.1
PrintHex(const TDesC8 &, TInt)
void | PrintHex | ( | const TDesC8 & | aBuffer, |
| TInt | aLine |
| ) | [private] |
RefCount()
RefCount.
- Since
- Series 60 3.1
RunL()
void | RunL | ( | ) | [protected, virtual] |
From CActive To handle request completion
Send(const TDesC8 &, TRequestStatus &)
Send.
- Since
- Series 60 3.1
SetVariation()
void | SetVariation | ( | ) | [private] |
Member Enumerations Documentation
Enum TConnectionState
Tracks the state of this object through the connection process ENotConnected The initial (idle) state EConnecting A connect request is pending with the socket server EConnected A connection has been established EMakingSecureConn Started making the Socket Secure ESecureHandShake Client Handshake for the secure connection is in progress ELookingUp A DNS lookup request is pending with the socket server EFailue Indicates failure in any of the asynchronous operations
Enumerators
ENotConnected | |
ERetriveIAP | |
EConnecting | |
EConnected | |
EMakingSecureConn | |
ESecureHandShake | |
ELookingUp | |
EFailure | |
Member Data Documentation
RPointerArray< TRequestStatus > iConnArray
TInt
iConnectClients
TInt
| iConnectClients | [private] |
TBool
iConnectStarted
TBool
| iConnectStarted | [private] |
TBuf< KMaxHostAddressLen > iHostAddress
TInt
iListenCount
TInt
| iListenCount | [private] |
RPointerArray< CSuplPacketInfo > iPktArray
TBool
iPskTLSUsage
TBool
| iPskTLSUsage | [private] |
TRequestStatus * iReqStatus
TBool
iSendInProgress
TBool
| iSendInProgress | [private] |
CSuplSocketReader * iSocketReader
RSocketServ & iSocketServ
TBool
iStartedListen
TBool
| iStartedListen | [private] |
CSuplSocketTimer * iTimer
CSuplSocketTimer * | iTimer | [private] |
CSecureSocket * iTlsSocket
CSuplConnTrace * iTrace
CSuplConnTrace * | iTrace | [private] |
TBool
iVariantEnabled
TBool
| iVariantEnabled | [private] |
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.