Configuration

AISL must be configured on initial stage using linked structures described below.


struct aisl_cfg

struct aisl_cfg {
	AislCallback callback;
	void *p_ctx;
	const struct aisl_cfg_srv *srv;
	const struct aisl_cfg_ssl *ssl;
	int srv_cnt;
	int ssl_cnt;
	int client_spool_size;
	int initial_buffer_size;
	int client_accept_limit;
	int client_silence_timeout;
};

For default recommended configuration AISL_CFG_DEFAULTS macro could be used when define struct aisl_cfg.

#define AISL_CFG_DEFAULTS \
	.client_spool_size = 32 \
	, .initial_buffer_size = 16536 \
	, .client_accept_limit = 1024 \
	, .client_silence_timeout = 30 \

struct aisl_cfg_srv

struct aisl_cfg_srv {
	const char *host;
	uint16_t port;
	bool secure;
};

struct aisl_cfg_ssl

struct aisl_cfg_ssl {
	const char *host;
	const char *key_file;
	const char *crt_file;
};