Developers
Predefined Constants
CHMPX PHP Extension defines constants.
Chmpx Class
Chmpx class provides the methods below.
- Chmpx::__construct - Creates a empty Chmpx instance
- Chmpx::__destruct - Destroys a Chmpx instance
- Chmpx::create - Creates a ChmpxServer instance
- Chmpx::createServer - Creates a ChmpxServer instance
- Chmpx::createSlave - Creates a ChmpxSlave instance
- Chmpx::destroy - Destroys a Chmpx instance
- Chmpx::isRunning - Checks if a chmpx process exists
- Chmpx::getChmpxServer - Retrieves the ChmpxServer instance
- Chmpx::getChmpxSlave - Retrieves the ChmpxSlave instance
ChmpxServer Class
ChmpxServer class provides the methods below.
- ChmpxServer::__construct - Creates a ChmpxServer instance
- ChmpxServer::__destruct - Destroys a ChmpxServer instance
- ChmpxServer::reply - Replies a message
- ChmpxServer::replyKv - Replies a message with a key and a value
- ChmpxServer::receive - Receives a message
- ChmpxServer::receiveKv - Receives a message with a key and a value
ChmpxSlave Class
ChmpxSlave class provides the methods below.
- ChmpxSlave::__construct - Creates a empty Chmpx instance
- ChmpxSlave::__destruct - Destroys a Chmpx instance
- ChmpxSlave::send - Sends a message
- ChmpxSlave::sendKv - Sends a message with a key and a value
- ChmpxSlave::receive - Receives a message
- ChmpxSlave::receiveKv - Receives a message witha a key and a value
Chmpxpx Funsctions
Chmpxpx functions provides the methods below.
- chmpxpx_bump_debug_level - Changes the log level
- chmpxpx_set_debug_file - Writes log to the file
- chmpxpx_set_debug_level_error - Sets log level to error
- chmpxpx_set_debug_level_message - Sets log level to info
- chmpxpx_set_debug_level_silent - Stops logging
- chmpxpx_set_debug_level_warning - Sets log level to warning
- chmpxpx_unset_debug_file - Writes logs to stderr
- chmpxpx_load_debug_env - Loads environment variables
- chmpxpx_load_hash_library - Loads hash functions from the file
- chmpxpx_unload_hash_library - Removes the user-defined hash library
- chmpxpx_create - Creates a chmpx handle
- chmpxpx_create_server - Creates a chmpx handle
- chmpxpx_create_slave - Creates a chmpx handle
- chmpxpx_destroy - Destroys a chmpx handle
- chmpxpx_process_running - Checks if a chmpx process exists
- chmpxpx_msgid_open - Creates a msgid handle
- chmpxpx_msgid_close - Closes a msgid handle
- chmpxpx_pkth_close - Closes a chmpx packet handle
- chmpxpx_svr_receive - Receives a message
- chmpxpx_svr_receive_kv - Receives a message with a key and a value
- chmpxpx_svr_reply - Replies a message
- chmpxpx_svr_reply_kv - Replies a message with a key and a value
- chmpxpx_slv_receive - Receives a message
- chmpxpx_slv_receive_kv - Receives a message with a key and a value
- chmpxpx_slv_send - Sends a message
- chmpxpx_slv_send_kv - Sends a message with a key and a value
- chmpxpx_print_version - Prints the chmpx library version