4. osxpert.thrift

A C++ library which aims to reduce the required boilerplate code for the interaction with the turret API.

Everything is inside the osxpert::thrift namespace.

4.1. Usage

See Examples

4.2. Reference

4.2.1. ThriftClient.h

struct ClientTlsOptions
bool VerifyHost
std::string CertificateFile
std::string PrivateKeyFile
std::string TrustedCaFile
struct ClientOptions
typedef std::shared_ptr<apache::thrift::transport::TSSLSocketFactory> SslSocketFactoryPtr
ClientOptions(const std::string &host, int port, int timeoutMillis = 0, SslSocketFactoryPtr tlsSocketFactory = nullptr)
std::string Host
int Port
int ConnectionTimeoutMillis
SslSocketFactoryPtr TlsSocketFactory
template<class ClientType>
std::shared_ptr<ClientType> makeClient(const ClientOptions &options)
template<class ClientType>
class ClientConnection
template<class ClientType>
ClientConnection<ClientType> connect(std::shared_ptr<ClientType> client)

4.2.2. ThriftServer.h

struct ServerTlsOptions
bool AuthenticateClient = false
bool VerifyClientHost = false
std::string CertificateFile
std::string PrivateKeyFile
std::string TrustedCaFile
struct ServerOptions
std::string ListenAddress
int ListenPort
boost::optional<ServerTlsOptions> TlsOptions
class Server
void listen()
void stop()