es_sock.h File Reference

const TLitC8< sizeof("ESock_Main")> SOCKET_SERVER_MAIN_MODULE_NAME

const TLitC8< sizeof("ESock_Main")>SOCKET_SERVER_MAIN_MODULE_NAME[static]

Canonical names for the core ESOCKSVR modules

const TLitC8< sizeof("ESock_IP")> SOCKET_SERVER_IP_MODULE_NAME

const TLitC8< sizeof("ESock_IP")>SOCKET_SERVER_IP_MODULE_NAME[static]

const TLitC8< sizeof("ESock_Bt")> SOCKET_SERVER_BT_MODULE_NAME

const TLitC8< sizeof("ESock_Bt")>SOCKET_SERVER_BT_MODULE_NAME[static]

const TLitC8< sizeof("ESock_Ir")> SOCKET_SERVER_IR_MODULE_NAME

const TLitC8< sizeof("ESock_Ir")>SOCKET_SERVER_IR_MODULE_NAME[static]

const TLitC8< sizeof("ESock_SmsWap")> SOCKET_SERVER_SMSWAP_MODULE_NAME

const TLitC8< sizeof("ESock_SmsWap")>SOCKET_SERVER_SMSWAP_MODULE_NAME[static]

const TUint KConnectionUp

const TUintKConnectionUp

Progress Notification to inform clients Connection is up This event has the same numerical values as KLinkLayerOpen which is deprecated

const TUint KConnectionDown

const TUintKConnectionDown

Progress Notification to inform clients Connection is up This event has the same numerical values as KLinkLayerClosed which is deprecated

const TUint KESockDefaultMessageSlots

const TUintKESockDefaultMessageSlots

Default number of message slots.

const TUint KMaxSubConnectionEventSize

const TUintKMaxSubConnectionEventSize

Size of Maximum SubConnection event

Note:

If you allocate this on the heap, remember to delete through the pointer to the buffer and not any pointers to the events held inside it if you change this value, you will alter the function signature and break the .def file

Typedef TSubConnectionUniqueId

typedef TUint TSubConnectionUniqueId

SubConnection Unique Id

THIS API IS TO BE DEPRECATED

Typedef TSubConnectionNotificationBuf

typedef TBuf8< KMaxSubConnectionEventSize >TSubConnectionNotificationBuf

Buffer for notification of any change in the state of SubConnection.

THIS API IS TO BE DEPRECATED

const TUint KUseEmbeddedUniqueId

const TUintKUseEmbeddedUniqueId

const TUint KConnProgressDefault

const TUintKConnProgressDefault

Typedef TNifProgressBuf

typedef TPckgBuf< TNifProgress >TNifProgressBuf

Buffer for Network Interface Progress

const TUint KMaxSockAddrSize

const TUintKMaxSockAddrSize

Maximum sockets address size.

const TUint KAFUnspec

const TUintKAFUnspec

Default (unspecified) protocol module.

const TUint KSockStream

const TUintKSockStream

Stream socket.

const TUint KSockDatagram

const TUintKSockDatagram

Datagram socket.

const TUint KSockSeqPacket

const TUintKSockSeqPacket

Datagrams with sequence numbers.

const TUint KSockRaw

const TUintKSockRaw

Raw socket.

const TInt KSOLSocket

const TIntKSOLSocket

Generic socket options/commands.

const TInt KLevelUnspecified

const TIntKLevelUnspecified

Unspecified level.

const TUint KSODebug

const TUintKSODebug

Debugging enabled or disabled . Values are:

(TInt)0. Disabled

(TInt)1. Enabled

const TUint KSORecvBuf

const TUintKSORecvBuf

Socket receive buffer size. Values are:

KSocketBufSizeUndefined

1 to KMaxTUint: explicit buffer size, supplied as a TPckgBuf<TUint>

const TUint KSOSendBuf

const TUintKSOSendBuf

Socket send buffer size. Values are:

KSocketBufSizeUndefined

1 to KMaxTUint: explicit buffer size, supplied as a TPckgBuf<TUint>

const TUint KSONonBlockingIO

const TUintKSONonBlockingIO

Socket nonblocking mode. To set, no option values are required. For getting, values are:

(TInt)0. Disabled

(TInt)1. Enabled

const TUint KSOBlockingIO

const TUintKSOBlockingIO

Socket blocking mode. To set, no values are required. For getting, values are:

(TInt)0. Disabled

(TInt)1. Enabled

const TUint KSOSelectPoll

const TUintKSOSelectPoll

Getting only: gets a bitmask of flags describing the read/write/exception status of the socket. Value is a TInt containing a bitmask of socket status (KSockSelectExcept etc.) constants.

const TUint KSOReadBytesPending

const TUintKSOReadBytesPending

Getting only: retrieve the number of bytes currently available for reading. Value is a TInt.

const TUint KSOUrgentDataOffset

const TUintKSOUrgentDataOffset

Getting only: retrieve the urgent data offset (only for stream protocols that support urgent data). Value is a TInt.

const TUint KSOSelectLastError

const TUintKSOSelectLastError

Getting only: retrieves the last error. Errors are normally reported by the called method and behaviour is protocol dependent. KSOSelectLastError does not return such errors. Value is a TInt.

const TUint KSOEnableTransfer

const TUintKSOEnableTransfer

Setting only. Enables socket to be transferred to the process with given capabilities. The capabilities set should be supplied as TPckgBuf<TSecurityPolicy>. Each RSocket::Transfer() call must be enabled by setting this option.

const TUint KSODisableTransfer

const TUintKSODisableTransfer

Setting only. Disables a socket's possibility to be transferred. No option required.

const TInt KSocketBufSizeUndefined

const TIntKSocketBufSizeUndefined

Use default buffer size.

const TInt KSocketDefaultBufferSize

const TIntKSocketDefaultBufferSize

Default buffer size.

const TUint KSocketInternalOptionBit

const TUintKSocketInternalOptionBit

const TUint KIOctlSelect

const TUintKIOctlSelect

The aDesc parameter of RSocket::Ioctl() specifies a TUint containing a bitmask of Socket status constants. The completion status will be the subset of those conditions which is now true for the socket.

Used through RSocket::Ioctl(), with aLevel set to KSOLSocket.

KSOSelectPoll parameter to RSocket::GetOpt(), which allows the current select state of the socket to be read synchronously, and KSOSelectLastError, which returns the error code.

const TUint KSockSelectRead

const TUintKSockSelectRead

Data is available to be read; for listening sockets, a connect is pending.

const TUint KSockSelectWrite

const TUintKSockSelectWrite

Writing to the socket is not currently blocked by flow-control.

const TUint KSockSelectExcept

const TUintKSockSelectExcept

An error has occurred.

const TUint KSockSelectReadContinuation

const TUintKSockSelectReadContinuation

Include tail of prior read datagram as available data (ie indicates next read will be with read continuation)

const TUint KSockWriteUrgent

const TUintKSockWriteUrgent

The data to be sent is urgent and is given a higher priority than ordinary data in the send queue. KSockWriteUrgent may only be provided as a flag to Send() if the protocol's information flag is marked with KSIUrgentData, otherwise Send() will return with KErrNotSupported. AKA: Out of band or unit data.

const TUint KSocketInternalWriteBit

const TUintKSocketInternalWriteBit

Must not be set for client requests.

const TUint KSockWriteSystemMask

const TUintKSockWriteSystemMask

The top 8 bits are reserved for system purposes; protocols must not define these bits.

const TUint KSockReadPeek

const TUintKSockReadPeek

Read data without consuming it, data remains in the receive queue. KSockReadPeek may only be provided as a flag to Recv() if the protocol's information flag is marked with KSIPeekData, otherwise Recv() will return with KErrNotSupported.

const TUint KSocketInternalReadBit

const TUintKSocketInternalReadBit

Must not be set for client requests.

const TUint KSockReadContinuation

const TUintKSockReadContinuation

Read from datagram in a stream-like fashion (not discarding tails).

const TUint KSIConnectionLess

const TUintKSIConnectionLess

The protocol is connectionless.

const TUint KSIReliable

const TUintKSIReliable

The protocol is reliable.

const TUint KSIInOrder

const TUintKSIInOrder

The protocol guarantees in-order delivery.

const TUint KSIMessageBased

const TUintKSIMessageBased

The protocol is message based.

const TUint KSIDatagram

const TUintKSIDatagram

The same as message based.

const TUint KSIStreamBased

const TUintKSIStreamBased

The protocol is stream based.

const TUint KSIPseudoStream

const TUintKSIPseudoStream

The protocol supports a stream like interface but maintains datagram boundaries.

const TUint KSIUrgentData

const TUintKSIUrgentData

The protocol offers an expedited data service.

const TUint KSIConnectData

const TUintKSIConnectData

The protocol can send user data on a connection request.

const TUint KSIDisconnectData

const TUintKSIDisconnectData

The protocol can send user data on a disconnect request.

const TUint KSIBroadcast

const TUintKSIBroadcast

The protocol supports broadcast addresses.

const TUint KSIMultiPoint

const TUintKSIMultiPoint

The protocol supports point to multi-point connections.

const TUint KSIQOS

const TUintKSIQOS

The protocol supports a quality of service metric.

const TUint KSIWriteOnly

const TUintKSIWriteOnly

The protocol is write only.

const TUint KSIReadOnly

const TUintKSIReadOnly

The protocol is read only.

const TUint KSIGracefulClose

const TUintKSIGracefulClose

The protocol supports graceful close.

const TUint KSICanReconnect

const TUintKSICanReconnect

The same socket can be reconnected if it disconnects (for whatever reason).

const TUint KSIPeekData

const TUintKSIPeekData

Protocol supports peeking (looking at the data without removing it from the protocol).

const TUint KSIRequiresOwnerInfo

const TUintKSIRequiresOwnerInfo

Protocol is to be informed of the identity of the client (i.e. process ID, thread ID and UID) of each SAP (i.e. Socket Service Provider) created. Note that this value has no meaningful interpretation on the client side. KSoOwnerInfo and TSoOwnerInfo

const TUint KSIReserved

const TUintKSIReserved

const TUint KNSNameResolution

const TUintKNSNameResolution

Protocol supports resolving human readable entity names into network addresses (like DNS).

const TUint KNSHierarchicalNaming

const TUintKNSHierarchicalNaming

Network naming is hierarchical.

const TUint KNSHeirarchicalNaming

const TUintKNSHeirarchicalNaming

Use KNSHierarchicalNaming instead.

const TUint KNSRemoteDiscovery

const TUintKNSRemoteDiscovery

Addressing is dynamic and should be attempted every time before connecting (like IrDA).

const TUint KNSServiceResolution

const TUintKNSServiceResolution

Protocol supports service name to port number resolution. (For example, you can look up TCP to get port 48.)

const TUint KNSNameRegistration

const TUintKNSNameRegistration

Protocol supports additions to the name database.

const TUint KNSServiceRegistration

const TUintKNSServiceRegistration

Protocol supports additions to the service database.

const TUint KNSDynamicAddressing

const TUintKNSDynamicAddressing

Addressing is dynamic - i.e. name to address mapping may change (like IrDA which randomly chooses machine addresses.)

const TUint KNSInfoDatabase

const TUintKNSInfoDatabase

Protocol has another database which is defined by the protocol.

const TUint KNSRequiresConnectionStartup

const TUintKNSRequiresConnectionStartup

Protocol may request Socket Server to startup a connection on its behalf (via the KErrCompletion error code) Note that this value has no meaningful interpretation on the client side.

const TUint KNSReserved

const TUintKNSReserved

const TUint KSocketNoSecurity

const TUintKSocketNoSecurity

No security

const TUint KSecureSockets

const TUintKSecureSockets

Secure Sockets Layer.

CSecureSocket

const TInt KSocketMessageSizeIsStream

const TIntKSocketMessageSizeIsStream

Reads and writes can be of any size: the data is treated as a stream.

const TInt KSocketMessageSizeUndefined

const TIntKSocketMessageSizeUndefined

Depends on lower layer or is dynamic.

const TInt KSocketMessageSizeNoLimit

const TIntKSocketMessageSizeNoLimit

Data is packet-oriented but packets can be of any size (i.e. the remote end must specify a Read of the same size as your Write, but there is no limit on this size.)

const TUint KUndefinedSockType

const TUintKUndefinedSockType

Undefined socket type.

const TUint KUndefinedProtocol

const TUintKUndefinedProtocol

Undefined socket type. Undefined Protocol

const TUint KUndefinedAddressFamily

const TUintKUndefinedAddressFamily

Undefined address family

Typedef TProtocolName

typedef TBuf< 0x20 >TProtocolName

Contains the name of a protocol in structure TProtocolDesc.

Typedef TServiceName

typedef TBuf< 0x20 >TServiceName

Defines a descriptor to hold a service name string.

Typedef THostName

typedef TBuf< 0x100 >THostName

Defines a descriptor to hold a host name string.

const TInt KErrWouldBlock

const TIntKErrWouldBlock

This error is returned from operations on non-blocking sockets that cannot be completed immediately, for example receive when no data is queued for reading. It is a non-fatal error, and the operation should be retried later.

const TInt KErrConnectionTerminated

const TIntKErrConnectionTerminated

socket errors

The value -17210 is taken from the range allocated for Esock (beginning at -17200) A gap has been left between the currently existing vals and this one.

const TInt KErrCannotFindProtocol

const TIntKErrCannotFindProtocol

const TInt KErrTierNotFound

const TIntKErrTierNotFound

const TInt KErrConnectionContention

const TIntKErrConnectionContention

const TInt KErrProtocolNotReady

const TIntKErrProtocolNotReady

The protocol requested for the socket was recognised but was not able to be used. This can happen with protocols that require specific settings to have been prepared prior to the socket being opened.

Typedef TSockXfrLength

typedef TPckgBuf< TInt >TSockXfrLength

Used in RSocket read and write calls to pass the length of data read and written.

Typedef TNameEntry

typedef TPckgBuf< TNameRecord >TNameEntry

Packages the TNameRecord class so that it can be passed between a client and the socket server.

Typedef TPortNum

typedef TPckgBuf< TInt >TPortNum

Port number on service

const TUint KConnectionTypeDefault

const TUintKConnectionTypeDefault

Default connection type

const TInt32 KSubConnParamsInterfaceUid

const TInt32KSubConnParamsInterfaceUid

const TInt32 KSubConnEventInterfaceUid

const TInt32KSubConnEventInterfaceUid

const TInt32 KSubConnGenericParamsImplUid

const TInt32KSubConnGenericParamsImplUid

const TInt32 KSubConnGenericEventsImplUid

const TInt32KSubConnGenericEventsImplUid

const TUint32 KSubConGlobalFamily

const TUint32KSubConGlobalFamily

const TUint32 KSubConQoSFamily

const TUint32KSubConQoSFamily

const TUint32 KSubConAuthorisationFamily

const TUint32KSubConAuthorisationFamily

const TUint32 KSubConnCallDescrParamsFamily

const TUint32KSubConnCallDescrParamsFamily

const TUint32 KSubConnContextDescrParamsFamily

const TUint32KSubConnContextDescrParamsFamily

const TUint32 KSubConIPAddressInfoFamily

const TUint32KSubConIPAddressInfoFamily

const TInt32 KProtocolExtensionFamily

const TInt32KProtocolExtensionFamily

const TInt32 KFlowParametersFamily

const TInt32KFlowParametersFamily

const TInt KNotificationEventMaxSize

const TIntKNotificationEventMaxSize