|
||
typedef TBuf<0x20> TProtocolName;
Contains the name of a protocol in structure TProtocolDesc
TProtocolDesc
.
typedef TPckgBuf<TInt> TSockXfrLength;
Used in RSocket
RSocket
read and write calls to pass the length of data read and written.
typedef TPckgBuf<TNameRecord> TNameEntry;
Packages the TNameRecord
TNameRecord
class so that it can be passed between a client and the socket server.
TByteOrder
Used in structure TProtocolDesc
TProtocolDesc
to describes the endianness of a protocol.
|
const TLitC8< sizeof("ESock_Main") SOCKET_SERVER_MAIN_MODULE_NAME)={sizeof( "ESock_Main" )-1, "ESock_Main" };
Canonical names for the core ESOCKSVR modules
const TLitC8< sizeof("ESock_IP") SOCKET_SERVER_IP_MODULE_NAME)={sizeof( "ESock_IP" )-1, "ESock_IP" };
const TLitC8< sizeof("ESock_Bt") SOCKET_SERVER_BT_MODULE_NAME)={sizeof( "ESock_Bt" )-1, "ESock_Bt" };
const TLitC8< sizeof("ESock_Ir") SOCKET_SERVER_IR_MODULE_NAME)={sizeof( "ESock_Ir" )-1, "ESock_Ir" };
const TLitC8< sizeof("ESock_SmsWap") SOCKET_SERVER_SMSWAP_MODULE_NAME)={sizeof( "ESock_SmsWap" )-1, "ESock_SmsWap" };
const TUint KUseEmbeddedUniqueId=0;
Used by RConnection
RConnection
to identify cases where the subconnection id is embedded in the data structure.
const TUint KSODebug=1;
Debugging enabled or disabled . Values are:
(TInt)0. Disabled
(TInt)1. Enabled
const TUint KSORecvBuf=2;
Socket receive buffer size. Values are:
KSocketBufSizeUndefined
1 to KMaxTUint: explicit buffer size, supplied as a TPckgBuf<TUint>
const TUint KSOSendBuf=3;
Socket send buffer size. Values are:
KSocketBufSizeUndefined
1 to KMaxTUint: explicit buffer size, supplied as a TPckgBuf<TUint>
const TUint KSONonBlockingIO=4;
Socket nonblocking mode. To set, no option values are required. For getting, values are:
(TInt)0. Disabled
(TInt)1. Enabled
const TUint KSOBlockingIO=5;
Socket blocking mode. To set, no values are required. For getting, values are:
(TInt)0. Disabled
(TInt)1. Enabled
const TUint KSOSelectPoll=6;
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=7;
Getting only: retrieve the number of bytes currently available for reading. Value is a TInt.
const TUint KSOUrgentDataOffset=8;
Getting only: retrieve the urgent data offset (only for stream protocols that support urgent data). Value is a TInt.
const TUint KSOSelectLastError=9;
Getting only: retrieves the last error. Value is a TInt.
const TUint KSOEnableTransfer=10;
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(RSocketServ &,const TDesC &)
call must be enabled by setting this option.
const TUint KSODisableTransfer=11;
Setting only. Disables a socket's possibility to be transferred. No option required.
const TUint KIOctlSelect=1;
The aDesc parameter of RSocket::Ioctl(TUint,TRequestStatus &,TDes8 *,TUint)
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(TUint,TRequestStatus &,TDes8 *,TUint)
, with aLevel set to KSOLSocket.
KSOSelectPoll
KSOSelectPoll
Getting only: gets a bitmask of flags describing the read/write/exception status...RSocket::GetOpt(TUint,TUint,TDes8 &)
Gets a socket option. The socket server has options which are generic to all soc...KSOSelectLastError
KSOSelectLastError
Getting only: retrieves the last error. Value is a TInt. const TUint KSockSelectRead=0x00000001;
Data is available to be read; for listening sockets, a connect is pending.
const TUint KSockSelectWrite=0x00000002;
Writing to the socket is not currently blocked by flow-control.
const TUint KSockSelectReadContinuation=0x01000000;
Include tail of prior read datagram as available data (ie indicates next read will be with read continuation)
const TUint KSockWriteUrgent=0x00000001;
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 KSockWriteSystemMask=0xFF000000;
The top 8 bits are reserved for system purposes; protocols must not define these bits.
const TUint KSockReadPeek=0x00000001;
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 KSockReadContinuation=0x01000000;
Read from datagram in a stream-like fashion (not discarding tails).
const TUint KSIPseudoStream=0x00000020;
The protocol supports a stream like interface but maintains datagram boundaries.
const TUint KSIConnectData=0x00000080;
The protocol can send user data on a connection request.
const TUint KSIDisconnectData=0x00000100;
The protocol can send user data on a disconnect request.
const TUint KSIMultiPoint=0x00000400;
The protocol supports point to multi-point connections.
const TUint KSICanReconnect=0x00008000;
The same socket can be reconnected if it disconnects (for whatever reason).
const TUint KSIPeekData=0x00010000;
Protocol supports peeking (looking at the data without removing it from the protocol).
const TUint KSIRequiresOwnerInfo=0x00020000;
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.
Interface status: | deprecated | Use KNSHierarchicalNaming instead. |
const TUint KNSHeirarchicalNaming=0x00000002;
const TUint KNSRemoteDiscovery=0x00000004;
Addressing is dynamic and should be attempted every time before connecting (like IrDA).
const TUint KNSServiceResolution=0x00000008;
Protocol supports service name to port number resolution. (For example, you can look up TCP to get port 48.)
const TUint KNSNameRegistration=0x00000010;
Protocol supports additions to the name database.
const TUint KNSServiceRegistration=0x00000020;
Protocol supports additions to the service database.
const TUint KNSDynamicAddressing=0x00000040;
Addressing is dynamic - i.e. name to address mapping may change (like IrDA which randomly chooses machine addresses.)
const TUint KNSInfoDatabase=0x00000080;
Protocol has another database which is defined by the protocol.
const TUint KNSRequiresConnectionStartup=0x00000100;
Protocol may request Socket Server to startup a connection on its behalf (via the KErrCompletion error code)
const TInt KSocketMessageSizeIsStream=0;
Reads and writes can be of any size: the data is treated as a stream.
const TInt KSocketMessageSizeNoLimit=-1;
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 TInt KErrWouldBlock=-1000;
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=-17210;
socket errors
The value -17210 is taken from the range allocated for Esock
Esock
(beginning at -17200) A gap has been left between the currently existing vals and this one.
const TInt KNotificationEventMaxSize=2048;