libqi-api
2.8.7.4
|
#include <gateway.hpp>
Public Types | |
using | IdValidationStatus = ServiceDirectoryProxy::IdValidationStatus |
using | ListenStatus = ServiceDirectoryProxy::ListenStatus |
using | ConnectionStatus = ServiceDirectoryProxy::ConnectionStatus |
using | Status = ServiceDirectoryProxy::Status |
Public Member Functions | |
Gateway (bool enforceAuth=true) | |
~Gateway () | |
UrlVector | endpoints () const |
bool | listen (const Url &url) |
Future< ListenStatus > | listenAsync (const Url &url) |
bool | setIdentity (const std::string &key, const std::string &crt) |
Future< IdValidationStatus > | setValidateIdentity (const std::string &key, const std::string &crt) |
void | setAuthProviderFactory (AuthProviderFactoryPtr provider) |
qi::Future< void > | attachToServiceDirectory (const Url &serviceDirectoryUrl) |
void | close () |
Public Attributes | |
Property< bool > & | connected |
Property< Status > & | status |
Definition at line 16 of file gateway.hpp.
Definition at line 24 of file gateway.hpp.
Definition at line 22 of file gateway.hpp.
Definition at line 23 of file gateway.hpp.
Definition at line 25 of file gateway.hpp.
qi::Gateway::Gateway | ( | bool | enforceAuth = true | ) |
enforceAuth | If set to true, reject clients that try to skip the authentication step. If false, accept all incoming connections whether or not they authentify. |
qi::Gateway::~Gateway | ( | ) |
qi::Future<void> qi::Gateway::attachToServiceDirectory | ( | const Url & | serviceDirectoryUrl | ) |
void qi::Gateway::close | ( | ) |
UrlVector qi::Gateway::endpoints | ( | ) | const |
bool qi::Gateway::listen | ( | const Url & | url | ) |
Future<ListenStatus> qi::Gateway::listenAsync | ( | const Url & | url | ) |
void qi::Gateway::setAuthProviderFactory | ( | AuthProviderFactoryPtr | provider | ) |
bool qi::Gateway::setIdentity | ( | const std::string & | key, |
const std::string & | crt | ||
) |
Future<IdValidationStatus> qi::Gateway::setValidateIdentity | ( | const std::string & | key, |
const std::string & | crt | ||
) |
Property<bool>& qi::Gateway::connected |
Definition at line 36 of file gateway.hpp.
Definition at line 38 of file gateway.hpp.