class CImTextServerSession : public CMsgActive |
Creates/opens socket and sends and receives data.
Private Member Functions | |
---|---|
CImTextServerSession() | |
CImTextServerSession(RSocketServ &, CImConnect &) | |
CImTextServerSession(TInt, TInt) | |
CImTextServerSession(TInt, TInt, RSocketServ &, CImConnect &) | |
void | Close() |
void | ConstructL() |
void | CreateLogFile(TInt) |
void | CreateSecureSocketL() |
void | DoCancel() |
void | DoComplete(TInt &) |
void | DoConnectedToSocketL() |
void | DoQueueConnect() |
void | DoRunL() |
TInt | Open() |
void | OpenScriptFile(TInt) |
void | ParseSSLTLSResponseL() |
void | QueueGenericConnectL(TRequestStatus &, const TDesC &, TInt, const CImIAPPreferences &, const TDesC8 &) |
void | RealReceive(TDes8 &) |
void | RealSend(const TDesC8 &) |
void | SocketConnect() |
Public Member Enumerations | |
---|---|
enum | TImOperationMode { EImServerMode, EImClientMode } |
Private Member Enumerations | |
---|---|
enum | TImSecurityState { EImSecurityStateOff, EImSecurityStateOn, EImSecurityStateFailed } |
enum | TImSendReceiveState { EImInactive, EImSending, EImReceiving, EImReceivingBinaryData, EImSendingQueueReceive, EImSuspended } |
enum | TImSocketState { EImClosed, EImResolve, EImConnect, EImSendReceive, EImDialUsingOverride, EImTLSHandShakeStarted, EImSendReceiveTimedOut } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
CImTextServerSession | ( | ) | [private] |
cat Construction and Destruction
CImTextServerSession | ( | RSocketServ & | aSocketServ, |
CImConnect & | aConnect | ||
) | [private] |
RSocketServ & aSocketServ | |
CImConnect & aConnect |
CImTextServerSession | ( | TInt | aSendIdleTime, |
TInt | aReceiveIdleTime | ||
) | [private] |
cat Construction
An idle time of zero implies that no timer should be set.
CImTextServerSession | ( | TInt | aSendIdleTime, |
TInt | aReceiveIdleTime, | ||
RSocketServ & | aSocketServ, | ||
CImConnect & | aConnect | ||
) | [private] |
TInt aSendIdleTime | |
TInt aReceiveIdleTime | |
RSocketServ & aSocketServ | |
CImConnect & aConnect |
~CImTextServerSession | ( | ) |
cat Destruction
void | ConstructL | ( | ) | [private] |
cat Construction and Destruction.
void | CreateSecureSocketL | ( | ) | [private] |
IMPORT_C void | Disconnect | ( | ) |
IMPORT_C void | Disconnect | ( | TRequestStatus & | aStatus | ) |
TRequestStatus & aStatus |
void | DoCancel | ( | ) | [private, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
void | DoComplete | ( | TInt & | aStatusValue | ) | [private, virtual] |
TInt & aStatusValue |
CImConnect * | GetCImConnect | ( | ) |
IMPORT_C TInt | GetConnectionStage | ( | ) |
IMPORT_C TImLineType | GetCurrentTextLine | ( | TDes8 & | aDesc | ) |
Returns first full line of data received from socket to user
TDes8 & aDesc | will be filled with received buffer |
IMPORT_C TInt | GetIAPBearer | ( | TUint32 & | aBearer | ) |
Returns the bearer type we are connected to with in aBearer or returns an error code
TUint32 & aBearer |
IMPORT_C TInt | GetIAPValue | ( | TUint32 & | aIAP | ) |
TUint32 & aIAP | will be the current IAP |
IMPORT_C TInt | GetLastSocketActivityTimeout | ( | TUint32 & | aTimeout | ) |
TUint32 & aTimeout | is a return argument containing the timeout if it was found |
IMPORT_C TInt | GetRConnectionName | ( | TName & | aName | ) |
TName & aName | Buffer in which the name is returned. |
IMPORT_C void | LogError | ( | const TDesC8 & | aString, |
const TInt | aError | |||
) |
IMPORT_C void | LogText | ( | const TDesC8 & | aString | ) |
const TDesC8 & aString |
IMPORT_C CImTextServerSession * | NewL | ( | ) | [static] |
cat Construction
IMPORT_C CImTextServerSession * | NewL | ( | RSocketServ & | aSocketServ, |
CImConnect & | aConnect | |||
) | [static] |
RSocketServ & aSocketServ | |
CImConnect & aConnect |
IMPORT_C CImTextServerSession * | NewL | ( | TInt | aSendIdleTime, |
TInt | aReceiveIdleTime | |||
) | [static] |
cat Construction
An idle time of zero implies that no timer should be set.
IMPORT_C CImTextServerSession * | NewL | ( | TInt | aSendIdleTime, |
TInt | aReceiveIdleTime, | |||
RSocketServ & | aSocketServ, | |||
CImConnect & | aConnect | |||
) | [static] |
TInt aSendIdleTime | |
TInt aReceiveIdleTime | |
RSocketServ & aSocketServ | |
CImConnect & aConnect |
IMPORT_C CImTextServerSession * | NewL | ( | RSocketServ & | aServerServ | ) | [static] |
RSocketServ & aServerServ |
IMPORT_C CImTextServerSession * | NewLC | ( | TImOperationMode | aMode, |
RSocketServ & | aServerServ | |||
) | [static] |
TImOperationMode aMode | |
RSocketServ & aServerServ |
void | ParseSSLTLSResponseL | ( | ) | [private] |
IMPORT_C void | QueueConnect | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
TBool | aEnableTimeout = ETrue | |||
) |
TRequestStatus & aStatus | |
const TDesC & anAddressDesc | |
TInt aPortNum | |
TBool aEnableTimeout = ETrue |
IMPORT_C void | QueueConnect | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
TInt | aType, | |||
TBool | aEnableTimeout = ETrue | |||
) |
TRequestStatus & aStatus | |
const TDesC & anAddressDesc | |
TInt aPortNum | |
const CImIAPPreferences & aIAPPreferences | |
TInt aType | |
TBool aEnableTimeout = ETrue |
IMPORT_C void | QueueConnect | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
TCallBack | aDisconnectFunction, | |||
const TUint32 | aIntraddress, | |||
TInt | aType, | |||
TBool | aEnableTimeout = ETrue | |||
) |
IMPORT_C void | QueueConnect | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const TUint32 | aIAPaddress, | |||
TInt | aType, | |||
TBool | aEnableTimeout = ETrue | |||
) |
IMPORT_C void | QueueConnect | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
TCallBack | aDisconnectFunction, | |||
TBool | aEnableTimeout = ETrue | |||
) |
TRequestStatus & aStatus | |
const TDesC & anAddressDesc | |
TInt aPortNum | |
TCallBack aDisconnectFunction | |
TBool aEnableTimeout = ETrue |
IMPORT_C void | QueueConnect | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
TCallBack | aDisconnectFunction, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
TInt | aType, | |||
TBool | aEnableTimeout = ETrue | |||
) |
TRequestStatus & aStatus | |
const TDesC & anAddressDesc | |
TInt aPortNum | |
TCallBack aDisconnectFunction | |
const CImIAPPreferences & aIAPPreferences | |
TInt aType | |
TBool aEnableTimeout = ETrue |
IMPORT_C void | QueueConnectL | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
TBool | aEnableTimeout = ETrue | |||
) |
TRequestStatus & aStatus | Asynchronous completion status |
const TDesC & anAddressDesc | is the IP address |
TInt aPortNum | is the port number eg. 143, 25, 110. |
const CImIAPPreferences & aIAPPreferences | is the IAP connection preference to be used |
TBool aEnableTimeout = ETrue | Not used |
IMPORT_C void | QueueConnectL | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
const TDesC8 & | aSSLDomainName | |||
) |
Queue a connect on a socket assuming the socket is successfully opened.
TRequestStatus & aStatus | Asynchronous completion status |
const TDesC & anAddressDesc | |
TInt aPortNum | Port number eg. 993, 465, 995. |
const CImIAPPreferences & aIAPPreferences | IAP connection preferences to be used |
const TDesC8 & aSSLDomainName | SSL domain name to use for the connection |
void | QueueGenericConnectL | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
const TDesC8 & | aSSLDomainName | |||
) | [private] |
TRequestStatus & aStatus | |
const TDesC & anAddressDesc | |
TInt aPortNum | |
const CImIAPPreferences & aIAPPreferences | |
const TDesC8 & aSSLDomainName |
IMPORT_C void | QueueReceiveNextTextLine | ( | TRequestStatus & | aStatus | ) |
TRequestStatus & aStatus | for asynchronous request |
IMPORT_C void | Receive | ( | TRequestStatus & | aStatus, |
TDes8 & | rDes | |||
) |
TRequestStatus & aStatus | |
TDes8 & rDes |
IMPORT_C void | ReceiveBinaryData | ( | TRequestStatus & | aStatus, |
TDes8 & | aDes, | |||
TInt | aLen | |||
) |
TRequestStatus & aStatus | Asynchronous completion status |
TDes8 & aDes | is the aData to be received |
TInt aLen | is the length of the data the user wants to read |
IMPORT_C void | SSLQueueConnectL | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
TBool | aEnableTimeout = ETrue | |||
) |
TRequestStatus & aStatus | Asynchronous completion status |
const TDesC & anAddressDesc | is the IP address |
TInt aPortNum | is the port number eg. 993, 465, 995. |
const CImIAPPreferences & aIAPPreferences | is the IAP connection preference to be used |
TBool aEnableTimeout = ETrue | Not used |
IMPORT_C void | SSLQueueConnectL | ( | TRequestStatus & | aStatus, |
const TDesC & | anAddressDesc, | |||
TInt | aPortNum, | |||
const CImIAPPreferences & | aIAPPreferences, | |||
const TDesC8 & | aSSLDomainName | |||
) |
Queue a wrapped SSL connect on a socket assuming the socket is successfully opened.
TRequestStatus & aStatus | Asynchronous completion status |
const TDesC & anAddressDesc | |
TInt aPortNum | Port number eg. 993, 465, 995. |
const CImIAPPreferences & aIAPPreferences | IAP connection preferences to be used |
const TDesC8 & aSSLDomainName | SSL domain name to use for the connection |
IMPORT_C void | Send | ( | TRequestStatus & | aStatus, |
const TDesC8 & | aDesc | |||
) |
TRequestStatus & aStatus | Asynchronous completion status |
const TDesC8 & aDesc | is the aData to be sent |
IMPORT_C void | Send | ( | TRequestStatus & | aStatus, |
TRefByValue< const TDesC8 > | aFmt, | |||
... | ||||
) |
TRequestStatus & aStatus | |
TRefByValue< const TDesC8 > aFmt | |
... |
IMPORT_C TInt | Send | ( | TRefByValue< const TDesC8 > | aFmt, |
... | ||||
) |
TRefByValue< const TDesC8 > aFmt | |
... |
IMPORT_C void | SendQueueReceive | ( | TRequestStatus & | aStatus, |
const TDesC8 & | aDesc | |||
) |
TRequestStatus & aStatus | Asynchronous completion status |
const TDesC8 & aDesc | is the aData to be sent |
IMPORT_C void | SendQueueReceive | ( | TRequestStatus & | aStatus, |
TRefByValue< const TDesC8 > | aFmt, | |||
... | ||||
) |
TRequestStatus & aStatus | |
TRefByValue< const TDesC8 > aFmt | |
... |
IMPORT_C void | SendQueueReceiveWithTimeout | ( | TRequestStatus & | aStatus, |
TInt | aIdleTime, | |||
const TDesC8 & | aDesc | |||
) |
TRequestStatus & aStatus | |
TInt aIdleTime | |
const TDesC8 & aDesc |
IMPORT_C TInt | SendReceive | ( | const TDesC8 & | aDesc | ) |
const TDesC8 & aDesc |
IMPORT_C void | SendWithTimeout | ( | TRequestStatus & | aStatus, |
TInt | aIdleTime, | |||
const TDesC8 & | aDesc | |||
) |
TRequestStatus & aStatus | |
TInt aIdleTime | |
const TDesC8 & aDesc |
IMPORT_C void | SetPrimaryTextServerSession | ( | CImTextServerSession * | aPrimaryTextServerSession | ) |
CImTextServerSession * aPrimaryTextServerSession |
IMPORT_C void | SetSSLTLSResponseL | ( | const TDesC8 & | aDesc | ) |
This method should be called before Send/SendQueueReceive() TLS command is sent.
const TDesC8 & aDesc | is the positive response the MTM expects from the connected server for TLS command. e.g. OK, +OK, 220 etc.. |
void | SocketIdle | ( | ) |
EImInactive | |
EImSending | |
EImReceiving | |
EImReceivingBinaryData | |
EImSendingQueueReceive | |
EImSuspended |
EImClosed | |
EImResolve | |
EImConnect | |
EImSendReceive | |
EImDialUsingOverride | |
EImTLSHandShakeStarted | |
EImSendReceiveTimedOut |
CImTextServerSession * | iPrimaryTextServerSession | [private] |
TTimeIntervalMicroSeconds32 | iReceiveShortIdleTime | [private] |
CSecureSocket * | iSecureSocket | [private] |
handle to secure socket for SSL/TLS connection
TImSecurityState | iSecurityState | [private] |
secure state i.e to use Secure socket
TTimeIntervalMicroSeconds32 | iSendShortIdleTime | [private] |
A shorter idle timeout, used when a fast response is expected
HBufC8 * | iTLSResponse | [private] |
response for different mail protocols like 220,+OK, OK, BAD
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.