|
Apache HTTPD
|
Macros | |
| #define | ajp_msg_append_string(m, v) ajp_msg_append_string_ex(m, v, 1) |
| #define | ajp_msg_append_string_ascii(m, v) ajp_msg_append_string_ex(m, v, 0) |
| #define ajp_msg_append_string | ( | m, | |
| v | |||
| ) | ajp_msg_append_string_ex(m, v, 1) |
| #define ajp_msg_append_string_ascii | ( | m, | |
| v | |||
| ) | ajp_msg_append_string_ex(m, v, 0) |
| apr_status_t ajp_alloc_data_msg | ( | apr_pool_t * | pool, |
| char ** | ptr, | ||
| apr_size_t * | len, | ||
| ajp_msg_t ** | msg | ||
| ) |
Allocate a msg to send data
| pool | pool to allocate from |
| ptr | data buffer |
| len | the length of allocated data buffer |
| msg | returned AJP message |
Definition at line 875 of file ajp_header.c.
| apr_status_t ajp_handle_cping_cpong | ( | apr_socket_t * | sock, |
| request_rec * | r, | ||
| apr_interval_time_t | timeout | ||
| ) |
Handle the CPING/CPONG messages
| sock | backend socket |
| r | current request |
| timeout | time window for receiving cpong reply |
Definition at line 24 of file ajp_utils.c.
| apr_status_t ajp_ilink_receive | ( | apr_socket_t * | sock, |
| ajp_msg_t * | msg | ||
| ) |
Receive an AJP message from backend
| sock | backend socket |
| msg | AJP message to put serialized message |
Definition at line 74 of file ajp_link.c.
| apr_status_t ajp_ilink_send | ( | apr_socket_t * | sock, |
| ajp_msg_t * | msg | ||
| ) |
Send an AJP message to backend
| sock | backend socket |
| msg | AJP message to put serialized message |
Definition at line 21 of file ajp_link.c.
| apr_status_t ajp_msg_append_bytes | ( | ajp_msg_t * | msg, |
| const apr_byte_t * | value, | ||
| apr_size_t | valuelen | ||
| ) |
| apr_status_t ajp_msg_append_string_ex | ( | ajp_msg_t * | msg, |
| const char * | value, | ||
| int | convert | ||
| ) |
| apr_status_t ajp_msg_append_uint16 | ( | ajp_msg_t * | msg, |
| apr_uint16_t | value | ||
| ) |
| apr_status_t ajp_msg_append_uint32 | ( | ajp_msg_t * | msg, |
| apr_uint32_t | value | ||
| ) |
| apr_status_t ajp_msg_append_uint8 | ( | ajp_msg_t * | msg, |
| apr_byte_t | value | ||
| ) |
| apr_status_t ajp_msg_check_header | ( | ajp_msg_t * | msg, |
| apr_size_t * | len | ||
| ) |
| apr_status_t ajp_msg_copy | ( | ajp_msg_t * | smsg, |
| ajp_msg_t * | dmsg | ||
| ) |
| apr_status_t ajp_msg_create | ( | apr_pool_t * | pool, |
| apr_size_t | size, | ||
| ajp_msg_t ** | rmsg | ||
| ) |
| apr_status_t ajp_msg_dump | ( | apr_pool_t * | pool, |
| ajp_msg_t * | msg, | ||
| char * | err, | ||
| apr_size_t | count, | ||
| char ** | buf | ||
| ) |
Dump up to the first 1024 bytes on an AJP Message
| pool | pool to allocate from |
| msg | AJP Message to dump |
| err | error string to display |
| count | the number of bytes to dump |
| buf | buffer pointer for dump message |
Dump the given number of bytes on an AJP Message
| pool | pool to allocate from |
| msg | AJP Message to dump |
| err | error string to display |
| count | the number of bytes to dump |
| buf | buffer pointer for dump message |
| apr_status_t ajp_msg_end | ( | ajp_msg_t * | msg | ) |
| apr_status_t ajp_msg_get_bytes | ( | ajp_msg_t * | msg, |
| apr_byte_t ** | rvalue, | ||
| apr_size_t * | rvalue_len | ||
| ) |
Get a Byte array from AJP Message
| msg | AJP Message to get value from |
| rvalue | Pointer where value will be returned |
| rvalue_len | Pointer where Byte array len will be returned |
Get a Byte array from AJP Message
| msg | AJP Message to get value from |
| rvalue | Pointer where value will be returned |
| rvalueLen | Pointer where Byte array len will be returned |
| apr_status_t ajp_msg_get_string | ( | ajp_msg_t * | msg, |
| const char ** | rvalue | ||
| ) |
| apr_status_t ajp_msg_get_uint16 | ( | ajp_msg_t * | msg, |
| apr_uint16_t * | rvalue | ||
| ) |
| apr_status_t ajp_msg_get_uint32 | ( | ajp_msg_t * | msg, |
| apr_uint32_t * | rvalue | ||
| ) |
| apr_status_t ajp_msg_get_uint8 | ( | ajp_msg_t * | msg, |
| apr_byte_t * | rvalue | ||
| ) |
| apr_status_t ajp_msg_log | ( | request_rec * | r, |
| ajp_msg_t * | msg, | ||
| char * | err | ||
| ) |
Log an AJP message
| r | The current request |
| msg | AJP Message to dump |
| err | error string to display |
Log an AJP message
| request | The current request |
| msg | AJP Message to dump |
| err | error string to display |
| apr_status_t ajp_msg_peek_uint16 | ( | ajp_msg_t * | msg, |
| apr_uint16_t * | rvalue | ||
| ) |
| apr_status_t ajp_msg_peek_uint8 | ( | ajp_msg_t * | msg, |
| apr_byte_t * | rvalue | ||
| ) |
| apr_status_t ajp_msg_reset | ( | ajp_msg_t * | msg | ) |
| apr_status_t ajp_msg_reuse | ( | ajp_msg_t * | msg | ) |
| apr_status_t ajp_msg_serialize_cping | ( | ajp_msg_t * | msg | ) |
Serialize in an AJP Message a CPING command
+--------------------—+ | CPING CMD (1 byte) | +--------------------—+
| msg | AJP message to put serialized message |
Serialize in an AJP Message a CPING command
+--------------------—+ | CPING CMD (1 byte) | +--------------------—+
| smsg | AJP message to put serialized message |
| apr_status_t ajp_msg_serialize_ping | ( | ajp_msg_t * | msg | ) |
Serialize in an AJP Message a PING command
+--------------------—+ | PING CMD (1 byte) | +--------------------—+
| msg | AJP message to put serialized message |
Serialize in an AJP Message a PING command
+--------------------—+ | PING CMD (1 byte) | +--------------------—+
| smsg | AJP message to put serialized message |
| apr_status_t ajp_parse_data | ( | request_rec * | r, |
| ajp_msg_t * | msg, | ||
| apr_uint16_t * | len, | ||
| char ** | ptr | ||
| ) |
Parse the message body and return data address and length
| r | current request |
| msg | AJP message |
| len | returned AJP message length |
| ptr | returned data |
Definition at line 804 of file ajp_header.c.
| apr_status_t ajp_parse_header | ( | request_rec * | r, |
| proxy_dir_conf * | conf, | ||
| ajp_msg_t * | msg | ||
| ) |
Parse the header message from container
| r | current request |
| conf | proxy config |
| msg | AJP message |
Definition at line 781 of file ajp_header.c.
| apr_status_t ajp_parse_reuse | ( | request_rec * | r, |
| ajp_msg_t * | msg, | ||
| apr_byte_t * | reuse | ||
| ) |
Check the reuse flag in CMD_AJP13_END_RESPONSE
| r | current request |
| msg | AJP message |
| reuse | returned reuse flag |
Definition at line 850 of file ajp_header.c.
| int ajp_parse_type | ( | request_rec * | r, |
| ajp_msg_t * | msg | ||
| ) |
Parse the message type
| r | current request |
| msg | AJP message |
Definition at line 770 of file ajp_header.c.
| apr_status_t ajp_read_header | ( | apr_socket_t * | sock, |
| request_rec * | r, | ||
| apr_size_t | buffsize, | ||
| ajp_msg_t ** | msg | ||
| ) |
Read the ajp message and return the type of the message.
| sock | backend socket |
| r | current request |
| buffsize | size of the buffer. |
| msg | returned AJP message |
Definition at line 725 of file ajp_header.c.
| apr_status_t ajp_send_data_msg | ( | apr_socket_t * | sock, |
| ajp_msg_t * | msg, | ||
| apr_size_t | len | ||
| ) |
Send the data message
| sock | backend socket |
| msg | AJP message to send |
| len | AJP message length |
Definition at line 892 of file ajp_header.c.
| apr_status_t ajp_send_header | ( | apr_socket_t * | sock, |
| request_rec * | r, | ||
| apr_size_t | buffsize, | ||
| apr_uri_t * | uri, | ||
| const char * | secret | ||
| ) |
Build the ajp header message and send it
| sock | backend socket |
| r | current request |
| buffsize | max size of the AJP packet. |
| uri | requested uri |
| secret | authentication secret |
Definition at line 688 of file ajp_header.c.
Convert numeric message type into string
| type | AJP message type |
Definition at line 121 of file ajp_utils.c.