Wap

Public Member Enumerations
enumTWspBearer { EAny, EIP, ESMS7, ESMS, ..., EWAPSMS }
enumTWspCapability { EAliasAddresses, EExtendedMethods, EHeaderCodePages, EMethodMOR, ..., EAllCapabilities }
enumTWspMethodState { ENullMethod, ERequesting, EWaiting, EWaiting2, ..., EAborting }
enumTWspPrimitive { ESConnect, ESDisconnect, ESSuspend, ESResume, ..., ESPushAbort }
enumTWspProtocolOptions { ELargeDataTransfer, EAcknowledgementHeaders, ESessionResumeFacility, EPushFacility, EConfirmedPushFacility }
enumTWspReason { EProtoErr, EDisconnect, ESuspend, EResume, ..., ESessionStateFailure }
enumTWspSession { EWspConnectionOriented, EWspConnectionLess }
enumTWspSessionState { ENull, EConnecting, EConnected, ESuspending, ..., EResuming }

All type definitions and enumerations used in WSP are in placed in a wider WAP namespace, to avoid name conflicts with other components.

Member Enumeration Documentation

Enum TWspBearer

The TWspBearer type defines the set of supported bearers.

EnumeratorValueDescription
EAny0

Specifier for any bearer.

EIP

IP bearer.

ESMS7

A 7-bit SMS bearer.

ESMS

An 8-bit SMS bearer.

EWAPSMS7

A 7-bit WAP SMS bearer.

EWAPSMS

An 8-bit WAP SMS bearer.

Enum TWspCapability

The enum TWspCapabilty is used to select a capability to reset (if required) before setting the value of the capability.

EnumeratorValueDescription
EAliasAddresses0

Specifies the Alias Addresses capability.

EExtendedMethods

Specifies the Extended Methods capability.

EHeaderCodePages

Specifies the Header Code Pages capability.

EMethodMOR

Specifies the Method Maximum Outstanding Requests capability. Default value is 1.

EPushMOR

Specifies the Push Maximum Outstanding Requests capability. Default value is 1.

EProtocolOptions

Specifies the Protocol Options capability. Default value is 0x00.

EClientSDUSize

Specifies the Client SDU size capability. Default value is 1400 octets.

EServerSDUSize

Specifies the Server SDU size capability. Default value is 1400 octets.

EClientMessageSize

Specifies the Client Message size capability. Default value is 1400 octets.

EServerMessageSize

Specifies the Server Message size capability. Default value is 1400 octets.

EUnknownCapabilities

Specifies the Unknown capabilities.

EAllCapabilities

Specifies all the capabilities.

Enum TWspMethodState

The TWspMethodState type represents the states of a WSP method transaction, as defined by the WSP Specification, July 2001.

Enum TWspPrimitive

The TWspPrimitive type represents the WSP primitives defined in the WSP Specification, July 2001.

Enum TWspProtocolOptions

The TWspProtocolOptions type represents the optional protocol functions defined in the WSP Specification, July 2001. When the client sends the Protocol Capability to the server, it indicates which functions it will accept from the server. The server returns from the set of functions sent by the client those that it will perform.

EnumeratorValueDescription
ELargeDataTransfer0x08

The Large Data Transfer feature includes support for multiple SDU's and support for the Data Fragment PDU. Setting this falg indicates support for sending and receiving large data. If a client only wishes to receive large data, then it should set the Client and Server Message size fields appropriately.

EAcknowledgementHeaders0x10

The acknowledgement headers flag specifies that the client wishes to send acknowledgement headers. If the server cannot process them (indicated by negotiating down the flag) the client should not send the headers as they will be ignored.

ESessionResumeFacility0x20

The client enables the Suspend Resume facility when it wishes to suspend and resume the session. If the server does not support suspend and resume then this flag must be cleared in the negotiated capabilities.

EPushFacility0x40

The client uses this flag to indicate that it is able and willing to receive push information. If the server cannot send pushes then this flag must be cleared in the negotiated capabilities.

EConfirmedPushFacility0x80

The client uses this flag to indicate that it is able and willing to receive confirmed push information. If the server cannot send pushes then this flag must be cleared in the negotiated capabilities.

Enum TWspReason

The TWspReason type is used by to report the cause of a particular indication primitive. The WSP Specification, July 2001, specifies a given set that MUST be recognised (6.2.5). Further values may be added.

EnumeratorValueDescription
EProtoErr0xE0

The rules of the protocol were broken and in its current state, the peer could not perform the specified operation. E.g. the PDU was not allowed.

EDisconnect0xE1

The session was disconnected while the operation was still in progress.

ESuspend0xE2

The session was suspended while the operation was still in progress.

EResume0xE3

The session was resumed while the operation was still in progress.

ECongestion0xE4

The request could not be processed due to a lack of resources.

EConnectErr0xE5

The connection was prevented due to an error.

EMRUExceeded0xE6

The SDU size in a request exceeded the maximum negotiated SDU size.

EMORExceeded0xE7

The negotiated value of the maximum outstanding transactions (either for push or method transactions) has been exceeded.

EPeerReq0xE8

The operation was aborted by the Provider.

ENetErr0xE9

An underlying network error prevented the completion of a request.

EUserReq0xEA

The cause of the indication was an action by the Client.

EUserRfs0xEB

The client has refesed the Push message, no specific reason, no retries.

EUserPnd0xEC

The Push message cannot be delivered to the intended destination.

EUserDcr0xED

The Push message was discarded due to resource shortage.

EUserDcu0xEE

The content-type of the Push message cannot be processed.

ETemporaryRedirectedProxy0

The session connect request has been redirected to a new proxy. This is a temporary redirection and the original proxy should be used in the future when trying to access this service. This is not defined by the WSP Specification.

EPermanentRedirectedProxy

The session connect request has been redirected to a new proxy. This is a permanent redirection and the new proxy should be used in the future when trying to access this service. The client will be notified of this event and the HTTP session property EWspProxyAddressnew will contain the new proxy's address. The client should update its access point database. This is not defined by the WSP Specification.

EChangedProxyInSuspendedSession

The client had disconnected the session, but as Suspend Resume facility was being used, the session was suspended. The client then changed the proxy and did a connect. The suspended session cannot be resumed, so the the current session must be disconnected (with this reason) and a session connect initiated with the new proxy. This is not defined by the WSP Specification.

EWtlsConfigurationFailed

The client's WSP session was disconnected in the Connecting state because configuration of the underlying WTLS layer failed prior to the phase 1 WTLS handshake.

EWtlsPhase1HandshakeFailed

The client's WSP session was disconnected in the Connecting state because phase 1 of the WTLS handshake failed.

EWtlsPhase2HandshakeFailed

The client's WSP session was disconnected in the Connecting state because phase 2 of the WTLS handshake failed.

EWtlsInvalidServerCert

The client's WSP session was disconnected in the Connecting state because the proxy's WTLS certificate was invalid - e.g. badly formed, or out of date.

EWtlsUntrustedServerCert

The client's WSP session was disconnected in the Connecting state because the proxy's WTLS certificate could not be trusted. This means it was not signed by any root certificate on the device, and the security policy criteria could not determine further whether it could be trusted or not.

EWtlsNegotiatedConfigRejected

The client's WSP session was disconnected in the Connecting state because the negotiated WTLS configuration at completion of the secure handshake was rejected by criteria in the security policy.

EOutOfMemory

The client's transaction or session has failed due to an out-of-memory situation.

ESessionStateFailure

The client's session has entered an inconsistent state, probably due to a failure caused by an out-of-memory situation.

Enum TWspSession

The TWspSession type defines the 2 types of WSP Session Service; Connection Oriented and Connectionless.

EnumeratorValueDescription
EWspConnectionOriented0

Specifier for Connection Oriented Session Service.

EWspConnectionLess

Specifier for Connectionless Session Service.

Enum TWspSessionState

The TWspSessionState type represents the states of a WSP session, as defined by the WSP Specification, July 2001.