class RpcTransportCtx

Defined at line 127 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/RpcTransport.h

Represents the context that generates the socket connection.

All APIs are thread-safe. See RpcTransportCtxRaw and RpcTransportCtxTls for details.

Public Methods

std::unique_ptr<RpcTransport> newTransport (android::RpcTransportFd fd, FdTrigger * fdTrigger)

Create a new RpcTransport object.

Implementation details: for TLS, this function may incur I/O. |fdTrigger| may be used

to interrupt I/O. This function blocks until handshake is finished.

std::vector<uint8_t> getCertificate (RpcCertificateFormat format)

Return the preconfigured certificate of this context.

Implementation details:

- For raw sockets, this always returns empty string.

- For TLS, this returns the certificate. See RpcTransportTls for details.

void ~RpcTransportCtx ()

Defined at line 129 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/RpcTransport.h

Friends

class RpcTransportCtxTipcTrusty
class RpcTransportCtxTipcAndroid
class RpcTransportCtxTls
class RpcTransportCtxRaw