class RSocket : public RCommsSubSession |
Provides a client endpoint to a protocol. It provides functions for socket creation, reading, writing, passive connection, active connection, setting addresses and querying addresses. Use this class as an endpoint for network type communications. It provides the following services:
reading from and writing to protocol
binding to addresses
active connecting
passive connection through the listen/accept model
Before using any of these services, a connection to a socket server session must have been made and the socket must be open.
Since v5.0
Public Member Enumerations | |
---|---|
enum | TShutdown { ENormal, EStopInput, EStopOutput, EImmediate } |
IMPORT_C void | Accept | ( | RSocket & | aBlankSocket, |
TRequestStatus & | aStatus | |||
) |
RSocket & aBlankSocket | |
TRequestStatus & aStatus |
IMPORT_C void | Accept | ( | RSocket & | aBlankSocket, |
TDes8 & | aConnectData, | |||
TRequestStatus & | aStatus | |||
) |
RSocket & aBlankSocket | |
TDes8 & aConnectData | |
TRequestStatus & aStatus |
IMPORT_C void | Connect | ( | TSockAddr & | anAddr, |
TRequestStatus & | aStatus | |||
) |
TSockAddr & anAddr | |
TRequestStatus & aStatus |
IMPORT_C void | Connect | ( | TSockAddr & | anAddr, |
const TDesC8 & | aConnectDataOut, | |||
TDes8 & | aConnectDataIn, | |||
TRequestStatus & | aStatus | |||
) |
TSockAddr & anAddr | |
const TDesC8 & aConnectDataOut | |
TDes8 & aConnectDataIn | |
TRequestStatus & aStatus |
IMPORT_C TInt | GetOpt | ( | TUint | anOptionName, |
TUint | anOptionLevel, | |||
TDes8 & | anOption | |||
) |
IMPORT_C TInt | GetOpt | ( | TUint | anOptionName, |
TUint | anOptionLevel, | |||
TInt & | anOption | |||
) |
IMPORT_C TInt | Info | ( | TProtocolDesc & | aProtocol | ) |
TProtocolDesc & aProtocol |
IMPORT_C void | Ioctl | ( | TUint | aCommand, |
TRequestStatus & | aStatus, | |||
TDes8 * | aDesc = NULL, | |||
TUint | aLevel = KLevelUnspecified | |||
) |
TUint aCommand | |
TRequestStatus & aStatus | |
TDes8 * aDesc = NULL | |
TUint aLevel = KLevelUnspecified |
IMPORT_C TInt | Open | ( | RSocketServ & | aServer, |
TUint | addrFamily, | |||
TUint | sockType, | |||
TUint | protocol | |||
) |
RSocketServ & aServer | |
TUint addrFamily | |
TUint sockType | |
TUint protocol |
IMPORT_C TInt | Open | ( | RSocketServ & | aServer, |
TUint | addrFamily, | |||
TUint | sockType, | |||
TUint | protocol, | |||
RConnection & | aConnection | |||
) |
RSocketServ & aServer | |
TUint addrFamily | |
TUint sockType | |
TUint protocol | |
RConnection & aConnection |
IMPORT_C TInt | Open | ( | RSocketServ & | aServer, |
TUint | addrFamily, | |||
TUint | sockType, | |||
TUint | protocol, | |||
RSubConnection & | aSubConnection | |||
) |
RSocketServ & aServer | |
TUint addrFamily | |
TUint sockType | |
TUint protocol | |
RSubConnection & aSubConnection |
IMPORT_C TInt | Open | ( | RSocketServ & | aServer, |
const TDesC & | aName | |||
) |
RSocketServ & aServer | |
const TDesC & aName |
IMPORT_C void | Read | ( | TDes8 & | aDesc, |
TRequestStatus & | aStatus | |||
) |
TDes8 & aDesc | |
TRequestStatus & aStatus |
IMPORT_C void | Recv | ( | TDes8 & | aDesc, |
TUint | flags, | |||
TRequestStatus & | aStatus | |||
) |
TDes8 & aDesc | |
TUint flags | |
TRequestStatus & aStatus |
IMPORT_C void | Recv | ( | TDes8 & | aDesc, |
TUint | flags, | |||
TRequestStatus & | aStatus, | |||
TSockXfrLength & | aLen | |||
) |
TDes8 & aDesc | |
TUint flags | |
TRequestStatus & aStatus | |
TSockXfrLength & aLen |
IMPORT_C void | RecvFrom | ( | TDes8 & | aDesc, |
TSockAddr & | anAddr, | |||
TUint | flags, | |||
TRequestStatus & | aStatus | |||
) |
TDes8 & aDesc | |
TSockAddr & anAddr | |
TUint flags | |
TRequestStatus & aStatus |
IMPORT_C void | RecvFrom | ( | TDes8 & | aDesc, |
TSockAddr & | anAddr, | |||
TUint | flags, | |||
TRequestStatus & | aStatus, | |||
TSockXfrLength & | aLen | |||
) |
TDes8 & aDesc | |
TSockAddr & anAddr | |
TUint flags | |
TRequestStatus & aStatus | |
TSockXfrLength & aLen |
IMPORT_C void | RecvOneOrMore | ( | TDes8 & | aDesc, |
TUint | flags, | |||
TRequestStatus & | aStatus, | |||
TSockXfrLength & | aLen | |||
) |
TDes8 & aDesc | |
TUint flags | |
TRequestStatus & aStatus | |
TSockXfrLength & aLen |
IMPORT_C void | RecvOneOrMore | ( | TDes8 & | aDesc, |
TUint | flags, | |||
TRequestStatus & | aStatus | |||
) |
TDes8 & aDesc | |
TUint flags | |
TRequestStatus & aStatus |
IMPORT_C void | Send | ( | const TDesC8 & | aDesc, |
TUint | someFlags, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC8 & aDesc | |
TUint someFlags | |
TRequestStatus & aStatus |
IMPORT_C void | Send | ( | const TDesC8 & | aDesc, |
TUint | someFlags, | |||
TRequestStatus & | aStatus, | |||
TSockXfrLength & | aLen | |||
) |
const TDesC8 & aDesc | |
TUint someFlags | |
TRequestStatus & aStatus | |
TSockXfrLength & aLen |
IMPORT_C void | SendTo | ( | const TDesC8 & | aDesc, |
TSockAddr & | anAddr, | |||
TUint | flags, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC8 & aDesc | |
TSockAddr & anAddr | |
TUint flags | |
TRequestStatus & aStatus |
IMPORT_C void | SendTo | ( | const TDesC8 & | aDesc, |
TSockAddr & | anAddr, | |||
TUint | flags, | |||
TRequestStatus & | aStatus, | |||
TSockXfrLength & | aLen | |||
) |
const TDesC8 & aDesc | |
TSockAddr & anAddr | |
TUint flags | |
TRequestStatus & aStatus | |
TSockXfrLength & aLen |
IMPORT_C TInt | SetOpt | ( | TUint | anOptionName, |
TUint | anOptionLevel, | |||
const TDesC8 & | anOption = TPtrC8(NULL, 0) | |||
) |
IMPORT_C TInt | SetOpt | ( | TUint | anOptionName, |
TUint | anOptionLevel, | |||
TInt | anOption | |||
) |
IMPORT_C void | Shutdown | ( | TShutdown | aHow, |
TRequestStatus & | aStatus | |||
) |
TShutdown aHow | |
TRequestStatus & aStatus |
IMPORT_C void | Shutdown | ( | TShutdown | aHow, |
const TDesC8 & | aDisconnectDataOut, | |||
TDes8 & | aDisconnectDataIn, | |||
TRequestStatus & | aStatus | |||
) |
TShutdown aHow | |
const TDesC8 & aDisconnectDataOut | |
TDes8 & aDisconnectDataIn | |
TRequestStatus & aStatus |
IMPORT_C TInt | Transfer | ( | RSocketServ & | aServer, |
const TDesC & | aName | |||
) |
RSocketServ & aServer | |
const TDesC & aName |
IMPORT_C void | Write | ( | const TDesC8 & | aDesc, |
TRequestStatus & | aStatus | |||
) |
const TDesC8 & aDesc | |
TRequestStatus & aStatus |
Argument to RSocket::Shutdown() specifying how abruptly the shutdown occurs.
ENormal |
Complete when socket output/input stopped. |
EStopInput |
Stop socket input and complete when output is stopped. |
EStopOutput |
Stop socket output and complete when input is stopped. |
EImmediate |
Stop socket input/output and complete (abortive close). |