ajp_link.c revision 9df62ed109bd456de3e6a19b54e0ab31da3fe07c
/* Copyright 1999-2005 The Apache Software Foundation or its licensors, as
* applicable.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "ajp.h"
{
char *buf;
"ajp_ilink_send(): NULL socket provided");
return AJP_EINVAL;
}
do {
if (status != APR_SUCCESS) {
"ajp_ilink_send(): send failed");
return status;
}
} while (length);
return APR_SUCCESS;
}
{
apr_size_t rdlen = 0;
return status; /* socket closed. */
else if (APR_STATUS_IS_EAGAIN(status))
continue;
else if (status != APR_SUCCESS)
return status; /* any error. */
}
return APR_SUCCESS;
}
{
"ajp_ilink_receive(): NULL socket provided");
return AJP_EINVAL;
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() can't receive header");
return AJP_ENO_HEADER;
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() received bad header");
return AJP_EBAD_HEADER;
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() error while receiving message body "
"of length %" APR_SIZE_T_FMT,
hlen);
return AJP_EBAD_MESSAGE;
}
"ajp_ilink_receive() received packet len=%" APR_SIZE_T_FMT
"type=%d",
return APR_SUCCESS;
}