| Server IP : 176.32.38.42 / Your IP : 216.73.217.52 Web Server : LiteSpeed System : Linux ha006.mymail.zone 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64 User : s1225329 ( 1835) PHP Version : 7.4.33 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2234288/root/usr/include/dovecot/ |
Upload File : |
#ifndef ANVIL_CLIENT_H
#define ANVIL_CLIENT_H
enum anvil_client_flags {
/* if connect() fails with ENOENT, hide the error */
ANVIL_CLIENT_FLAG_HIDE_ENOENT = 0x01
};
/* reply=NULL if query failed */
typedef void anvil_callback_t(const char *reply, void *context);
/* If reconnect_callback is specified, it's called when connection is lost.
If the callback returns FALSE, reconnection isn't attempted. */
struct anvil_client *
anvil_client_init(const char *path, bool (*reconnect_callback)(void),
enum anvil_client_flags flags) ATTR_NULL(2);
void anvil_client_deinit(struct anvil_client **client);
/* Connect to anvil. If retry=TRUE, try connecting for a while */
int anvil_client_connect(struct anvil_client *client, bool retry);
/* Send a query to anvil, expect a one line reply. The returned pointer can be
used to abort the query later. It becomes invalid when callback is
called (= the callback must not call it). Returns NULL if the query couldn't
be sent. */
struct anvil_query *
anvil_client_query(struct anvil_client *client, const char *query,
anvil_callback_t *callback, void *context);
void anvil_client_query_abort(struct anvil_client *client,
struct anvil_query **query);
/* Send a command to anvil, don't expect any replies. */
void anvil_client_cmd(struct anvil_client *client, const char *cmd);
/* Returns TRUE if anvil is connected to. */
bool anvil_client_is_connected(struct anvil_client *client);
#endif