#include <mw/imsk.h>
Link against: imut.lib
| class CImTextServerSession : public CMsgActive |
| Public Member Enumerations | |
|---|---|
| enum | TImOperationMode { EImServerMode, EImClientMode } |
| Inherited Attributes | |
|---|---|
| CActive::iStatus | |
| Inherited Enumerations | |
|---|---|
| CActive:TPriority | |
Creates/opens socket and sends and receives data.
| Enumerator | Value | Description |
|---|---|---|
| EImServerMode | ||
| EImClientMode |
| ~CImTextServerSession | ( | ) |
cat Destruction
| IMPORT_C void | Disconnect | ( | ) |
| IMPORT_C void | Disconnect | ( | TRequestStatus & | aStatus | ) |
| CImConnect * | GetCImConnect | ( | ) |
| IMPORT_C TInt | GetConnectionStage | ( | ) |
| IMPORT_C TImLineType | GetCurrentTextLine | ( | TDes8 & | aDesc | ) |
Returns first full line of data received from socket to user
| Parameters | |
|---|---|
| aDesc | will be filled with received buffer |
Returns the bearer type we are connected to with in aBearer or returns an error code
| Parameters | |
|---|---|
| aTimeout | is a return argument containing the timeout if it was found |
| Parameters | |
|---|---|
| aName | Buffer in which the name is returned. |
| RSocketServ & | GetSocketServ | ( | ) |
| IMPORT_C const TDesC & | LocalName | ( | ) |
| IMPORT_C void | LogText | ( | const TDesC8 & | aString | ) |
| IMPORT_C CImTextServerSession * | NewL | ( | ) | [static] |
cat Construction
| Leave Codes | |
|---|---|
| KErrNoMemory. |
| IMPORT_C CImTextServerSession * | NewL | ( | RSocketServ & | aSocketServ, |
| CImConnect & | aConnect | |||
| ) | [static] | |||
| IMPORT_C CImTextServerSession * | NewL | ( | TInt | aSendIdleTime, |
| TInt | aReceiveIdleTime | |||
| ) | [static] | |||
cat Construction
An idle time of zero implies that no timer should be set.
| Parameters | |
|---|---|
| aSendIdleTime | The idle time in minutes allowed for sending. A value of zero indicates that no timer should be set. |
| aReceiveIdleTime | The idle time in minutes allowed for receiving. A value of zero indicates that no timer should be set. |
| Leave Codes | |
|---|---|
| KErrNoMemory. |
| IMPORT_C CImTextServerSession * | NewL | ( | TInt | aSendIdleTime, |
| TInt | aReceiveIdleTime, | |||
| RSocketServ & | aSocketServ, | |||
| CImConnect & | aConnect | |||
| ) | [static] | |||
| IMPORT_C CImTextServerSession * | NewL | ( | RSocketServ & | aServerServ | ) | [static] |
| IMPORT_C CImTextServerSession * | NewLC | ( | TImOperationMode | aMode, |
| RSocketServ & | aServerServ | |||
| ) | [static] | |||
| IMPORT_C void | PerformLogging | ( | TBool | aLogging | ) |
| IMPORT_C void | QueueConnect | ( | 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 | |||
| ) | ||||
| 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 | |||
| ) | ||||
| IMPORT_C void | QueueConnect | ( | 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 | |||
| ) | ||||
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| anAddressDesc | is the IP address |
| aPortNum | is the port number eg. 143, 25, 110. |
| aIAPPreferences | is the IAP connection preference to be used |
| aEnableTimeout | 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.
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| aPortNum | Port number eg. 993, 465, 995. |
| aIAPPreferences | IAP connection preferences to be used |
| aSSLDomainName | SSL domain name to use for the connection |
| IMPORT_C void | QueueReceiveNextTextLine | ( | TRequestStatus & | aStatus | ) |
User queues a new request from the socket (unless there's a full line of data in buffer then signal user and there's no need to make a receive request)
| Parameters | |
|---|---|
| aStatus | for asynchronous request |
| IMPORT_C void | Receive | ( | TRequestStatus & | aStatus, |
| TDes8 & | rDes | |||
| ) | ||||
| IMPORT_C void | ReceiveBinaryData | ( | TRequestStatus & | aStatus, |
| TDes8 & | aDes, | |||
| TInt | aLen | |||
| ) | ||||
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| aDes | is the aData to be received |
| 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 | |||
| ) | ||||
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| anAddressDesc | is the IP address |
| aPortNum | is the port number eg. 993, 465, 995. |
| aIAPPreferences | is the IAP connection preference to be used |
| aEnableTimeout | 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.
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| aPortNum | Port number eg. 993, 465, 995. |
| aIAPPreferences | IAP connection preferences to be used |
| aSSLDomainName | SSL domain name to use for the connection |
| IMPORT_C void | Send | ( | TRequestStatus & | aStatus, |
| const TDesC8 & | aDesc | |||
| ) | ||||
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| aDesc | is the aData to be sent |
| IMPORT_C void | Send | ( | TRequestStatus & | aStatus, |
| TRefByValue< const TDesC8 > | aFmt, | |||
| ... | ||||
| ) | ||||
| IMPORT_C TInt | Send | ( | TRefByValue< const TDesC8 > | aFmt, |
| ... | ||||
| ) | ||||
| IMPORT_C void | SendQueueReceive | ( | TRequestStatus & | aStatus, |
| const TDesC8 & | aDesc | |||
| ) | ||||
| Parameters | |
|---|---|
| aStatus | Asynchronous completion status |
| aDesc | is the aData to be sent |
| IMPORT_C void | SendQueueReceive | ( | TRequestStatus & | aStatus, |
| TRefByValue< const TDesC8 > | aFmt, | |||
| ... | ||||
| ) | ||||
| IMPORT_C void | SendQueueReceiveWithTimeout | ( | TRequestStatus & | aStatus, |
| TInt | aIdleTime, | |||
| const TDesC8 & | aDesc | |||
| ) | ||||
| IMPORT_C void | SendWithTimeout | ( | TRequestStatus & | aStatus, |
| TInt | aIdleTime, | |||
| const TDesC8 & | aDesc | |||
| ) | ||||
| IMPORT_C void | SetPrimaryTextServerSession | ( | CImTextServerSession * | aPrimaryTextServerSession | ) |
| Parameters | |
|---|---|
| aPrimaryTextServerSession | is PrimarySession's TextServerSession |
| IMPORT_C void | SetSSLTLSResponseL | ( | const TDesC8 & | aDesc | ) |
This method should be called before Send/SendQueueReceive() TLS command is sent.
| Parameters | |
|---|---|
| aDesc | is the positive response the MTM expects from the connected server for TLS command. e.g. OK, +OK, 220 etc.. |
| Leave Codes | |
|---|---|
| EImskNoTLSResponseString |