ajp.h revision a8561b204b681363cf7702e48c369855a4714a3e
#
define AJP13_DEF_PORT 9009 /* default to 9009 since 8009 is used by OS *//* The following environment variables match mod_ssl! */ #
else /* APR_CHARSET_EBCDIC *//** AJP Specific error codes /** Buffer overflow exception */ /** Destination Buffer is to small */ /** Invalid input parameters */ /** Bad message signature */ /** Incoming message too bg */ /** Missing message header */ /** Bad message header */ /** Cant log via AJP14 */ /** A structure that represents ajp message */ /** A structure that represents ajp message */ /** The buffer holding a AJP message */ /** The length of AJP message header (defaults to AJP_HEADER_LEN) */ /** The length of AJP message */ /** The current read position */ /** Flag indicating the origing of the message */ * @defgroup AJP_defines AJP definitions * Signature for the messages sent from Apache to tomcat /** Send a request from web server to container*/ /** Write a body chunk from the servlet container to the web server */ /** Send response headers from the servlet container to the web server. */ /** Marks the end of response. */ /** Get further data from the web server if it hasn't all been transferred yet. */ /** The web server asks the container to shut itself down. */ /** Webserver ask container to take control (logon phase) */ /** Container response to cping request */ /** Webserver check if container is alive, since container should respond by cpong */ * @defgroup AJP_api AJP API functions * Check a new AJP Message by looking at signature and return its size * @param msg AJP Message to check * @param len Pointer to returned len * @return APR_SUCCESS or error * @param msg AJP Message to reset * @return APR_SUCCESS or error * Mark the end of an AJP Message * @param msg AJP Message to end * @return APR_SUCCESS or error * Add an unsigned 32bits value to AJP Message * @param msg AJP Message to get value from * @param value value to add to AJP Message * @return APR_SUCCESS or error * Add an unsigned 16bits value to AJP Message * @param msg AJP Message to get value from * @param value value to add to AJP Message * @return APR_SUCCESS or error * Add an unsigned 8bits value to AJP Message * @param msg AJP Message to get value from * @param value value to add to AJP Message * @return APR_SUCCESS or error * Add a String in AJP message, and transform the String in ASCII * if convert is set and we're on an EBCDIC machine * @param msg AJP Message to get value from * @param value Pointer to String * @param convert When set told to convert String to ASCII * @return APR_SUCCESS or error * Add a String in AJP message, and transform * the String in ASCII if we're on an EBCDIC machine * Add a String in AJP message. * Add a Byte array to AJP Message * @param msg AJP Message to get value from * @param value Pointer to Byte array * @param valuelen Byte array len * @return APR_SUCCESS or error * Get a 32bits unsigned value from AJP Message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error * Get a 16bits unsigned value from AJP Message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error * Peek a 16bits unsigned value from AJP Message, position in message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error * Get a 8bits unsigned value from AJP Message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error * Peek a 8bits unsigned value from AJP Message, position in message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error * Get a String value from AJP Message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error * Get a Byte array from AJP Message * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @param rvalueLen Pointer where Byte array len will be returned * @return APR_SUCCESS or error * Create an AJP Message from pool * @param pool memory pool to allocate AJP message from * @param rmsg Pointer to newly created AJP message * @return APR_SUCCESS or error * Recopy an AJP Message to another * @param smsg source AJP message * @param dmsg destination AJP message * @return APR_SUCCESS or error * Serialize in an AJP Message a PING command * +-----------------------+ * +-----------------------+ * @param smsg AJP message to put serialized message * @return APR_SUCCESS or error * Serialize in an AJP Message a CPING command * +-----------------------+ * +-----------------------+ * @param smsg AJP message to put serialized message * @return APR_SUCCESS or error * Dump up to the first 1024 bytes on an AJP Message * @param msg AJP Message to dump * @param err error string to display * @return APR_SUCCESS or error * Send an AJP message to backend * @param soct backend socket * @param smsg AJP message to put serialized message * @return APR_SUCCESS or error * Receive an AJP message from backend * @param sock backend socket * @param smsg AJP message to put serialized message * @return APR_SUCCESS or error * Build the ajp header message and send it * @param sock backend socket * @param r current request * @return APR_SUCCESS or error * Read the ajp message and return the type of the message. * @param sock backend socket * @param r current request * @param msg returned AJP message * @return APR_SUCCESS or error * Allocate a msg to send data * @param pool pool to allocate from * @param len the length of allocated data buffer * @param msg returned AJP message * @return APR_SUCCESS or error * @param sock backend socket * @param msg AJP message to send * @param len AJP message length * @return APR_SUCCESS or error * @param r current request * @return AJP message type. * Parse the header message from container * @param r current request * @return APR_SUCCESS or error * Parse the message body and return data address and length * @param r current request * @param len returned AJP message length * @param ptr returned data * @return APR_SUCCESS or error