22#ifdef COUCHBASE_ENTERPRISE
#define CBLAPI
Definition CBL_Compat.h:105
#define _cbl_nullable
Definition CBL_Compat.h:92
#define CBL_CAPI_BEGIN
Definition CBL_Compat.h:107
#define CBL_CAPI_END
Definition CBL_Compat.h:108
#define _cbl_warn_unused
Definition CBL_Compat.h:40
_cbl_warn_unused CBLURLEndpointListener *_cbl_nullable CBLURLEndpointListener_Create(const CBLURLEndpointListenerConfiguration *, CBLError *_cbl_nullable outError)
Creates a URL endpoint listener with the given configuration.
CBLTLSIdentity * CBLURLEndpointListener_TLSIdentity(const CBLURLEndpointListener *)
The TLS identity used by the listener for TLS communication.
void CBLListenerAuth_Free(CBLListenerAuthenticator *_cbl_nullable)
Frees a CBLListenerAuthenticator object.
_cbl_warn_unused CBLListenerAuthenticator * CBLListenerAuth_CreateCertificateWithRootCerts(CBLCert *rootCerts)
Creates a certificate authenticator for verifying client certificate with the specified root certific...
_cbl_warn_unused CBLListenerAuthenticator * CBLListenerAuth_CreatePassword(CBLListenerPasswordAuthCallback auth, void *_cbl_nullable context)
Creates a password authenticatorfor verifying client credentials when the HTTP Basic Authentication i...
FLMutableArray CBLURLEndpointListener_Urls(const CBLURLEndpointListener *)
The possible URLs of the listener.
struct CBLURLEndpointListener CBLURLEndpointListener
An opaque object representing the listener.
Definition CBLURLEndpointListener.h:93
typedefCBL_CAPI_BEGIN struct CBLListenerAuthenticator CBLListenerAuthenticator
An opaque object representing the listener authenticator.
Definition CBLURLEndpointListener.h:29
_cbl_warn_unused CBLListenerAuthenticator * CBLListenerAuth_CreateCertificate(CBLListenerCertAuthCallback auth, void *_cbl_nullable context)
Creates a certificate authenticator for verifying client certificate with the specified authenticatio...
const CBLURLEndpointListenerConfiguration * CBLURLEndpointListener_Config(const CBLURLEndpointListener *)
Gets the listener's configuration.
bool CBLURLEndpointListener_Start(CBLURLEndpointListener *, CBLError *_cbl_nullable outError)
Starts the listener.
CBLConnectionStatus CBLURLEndpointListener_Status(const CBLURLEndpointListener *)
Gets the current connection status of the listener.
void CBLURLEndpointListener_Stop(CBLURLEndpointListener *)
Stops the listener.
bool(* CBLListenerPasswordAuthCallback)(void *context, FLString username, FLString password)
Password authenticator callback for verifying client credentials when the HTTP Basic Authentication i...
Definition CBLURLEndpointListener.h:32
uint16_t CBLURLEndpointListener_Port(const CBLURLEndpointListener *)
The listening port of the listener.
bool(* CBLListenerCertAuthCallback)(void *context, CBLCert *cert)
Certificate authenticator callback for verifying client certificate when the TLS client certificate a...
Definition CBLURLEndpointListener.h:43
FLSlice FLString
Definition FLSlice.h:98
struct CBLCert CBLCert
An opaque object representing the X.509 Certifcate.
Definition CBLBase.h:249
struct CBLTLSIdentity CBLTLSIdentity
An opaque object representing the TLSIdentity.
Definition CBLTLSIdentity.h:269
struct CBLCollection CBLCollection
A collection, a document container.
Definition CBLBase.h:195
#define CBL_REFCOUNTED(TYPE, NAME)
Definition CBLBase.h:171
struct _FLArray * FLMutableArray
A reference to a mutable array.
Definition FLBase.h:39
The connection status of the listener.
Definition CBLURLEndpointListener.h:117
uint64_t activeConnectionCount
The number of the connections that are in active or busy state.
Definition CBLURLEndpointListener.h:119
uint64_t connectionCount
The total number of connections.
Definition CBLURLEndpointListener.h:118
A struct holding information about an error.
Definition CBLBase.h:105
The configuration for the URLEndpointListener.
Definition CBLURLEndpointListener.h:61
bool enableDeltaSync
Allow delta sync when replicating with the listener.
Definition CBLURLEndpointListener.h:86
CBLCollection ** collections
(Required) The collections available for replication .
Definition CBLURLEndpointListener.h:63
bool readOnly
Allow only pull replication to pull changes from the listener.
Definition CBLURLEndpointListener.h:89
FLString networkInterface
The network interface in the form of the IP Address or network interface name such as en0 that the li...
Definition CBLURLEndpointListener.h:74
CBLListenerAuthenticator *_cbl_nullable authenticator
The authenticator used by the listener to authenticate clients.
Definition CBLURLEndpointListener.h:83
bool disableTLS
Disable TLS communication.
Definition CBLURLEndpointListener.h:77
CBLTLSIdentity *_cbl_nullable tlsIdentity
TLSIdentity required for TLS communication.
Definition CBLURLEndpointListener.h:80
size_t collectionCount
(Required) The number of collections (Required).
Definition CBLURLEndpointListener.h:66
uint16_t port
The port that the listener will listen to.
Definition CBLURLEndpointListener.h:70