403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.113
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/plugin/innodb_memcached/daemon_memcached/include/memcached/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/plugin/innodb_memcached/daemon_memcached/include/memcached/callback.h
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef MEMCACHED_CALLBACK_H
#define MEMCACHED_CALLBACK_H

#include "memcached/engine_common.h"

#ifdef __cplusplus
extern "C" {
#endif

    /**
     * Event types for callbacks to the engine indicating state
     * changes in the server.
     */
    typedef enum {
        ON_CONNECT     = 0,     /**< A new connection was established. */
        ON_DISCONNECT  = 1,     /**< A connection was terminated. */
        ON_AUTH        = 2,     /**< A connection was authenticated. */
        ON_SWITCH_CONN = 3,     /**< Processing a different connection on this thread. */
        ON_LOG_LEVEL   = 4      /**< Changed log level */
    } ENGINE_EVENT_TYPE;

    #define MAX_ENGINE_EVENT_TYPE 5

    /**
     * Callback for server events.
     *
     * @param cookie The cookie provided by the frontend
     * @param type the type of event
     * @param event_data additional event-specific data.
     * @param cb_data data as registered
     */
    typedef void (*EVENT_CALLBACK)(const void *cookie,
                                   ENGINE_EVENT_TYPE type,
                                   const void *event_data,
                                   const void *cb_data);

    /**
     * The API provided by the server to manipulate callbacks
     */
    typedef struct {
        /**
         * Register an event callback.
         *
         * @param type the type of event to register
         * @param cb the callback to fire when the event occurs
         * @param cb_data opaque data to be given back to the caller
         *        on event
         */
        void (*register_callback)(ENGINE_HANDLE *engine,
                                  ENGINE_EVENT_TYPE type,
                                  EVENT_CALLBACK cb,
                                  const void *cb_data);

        /**
         * Fire callbacks
         */
        void (*perform_callbacks)(ENGINE_EVENT_TYPE type,
                                  const void *data,
                                  const void *cookie);
    } SERVER_CALLBACK_API;

#ifdef __cplusplus
}
#endif

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit