ajp_link.c revision aadf50900dfe0e5da15c24f69650e3b3d72601b4
/* Copyright 1999-2004 The Apache Software Foundation
*
* 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;
}
{
"ajp_ilink_readN(): NULL socket provided");
return AJP_EINVAL;
}
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\n");
return AJP_ENO_HEADER;
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() received bad header\n");
return AJP_EBAD_HEADER;
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() error while receiving message body %of length %d\n",
hlen);
return AJP_EBAD_MESSAGE;
}
"ajp_ilink_receive() received packet len=%d type=%d\n",
return APR_SUCCESS;
}