rbb 99/04/14 07:02:08
Modified: docs networkio.txt Log: Update the send and recv functions. Revision Changes Path 1.3 +12 -11 apache-apr/docs/networkio.txt Index: networkio.txt =================================================================== RCS file: /home/cvs/apache-apr/docs/networkio.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- networkio.txt 1999/04/13 11:53:21 1.2 +++ networkio.txt 1999/04/14 14:02:06 1.3 @@ -28,25 +28,26 @@ hopes that we may be able to close it later. If we free all the memory used, we can't even try to recover. - APRStatus apr_send(APRSocket, const void *, APRUInt64, APRUInt64 *) + apr_int32_t apr_send(apr_socket_t *, const char *, apr_int32_t, time_t) Sends a message over a socket Arguments: - arg 1) Pointer to abstracted File descriptor (socket) + arg 1) Pointer to abstracted socket arg 2) buffer containing message to send arg 3) size of buf (in bytes) - arg 4) Amount of data sent in bytes. (Returned by APR) - APRStatus apr_recv(APRSocket, void *, APRUInt64, APRUInt64 *); + arg 4) Amount of time to wait for message to be sent completely + and without errors, in seconds. + return) The number of bytes sent over the network. APR_FAILURE on + failure. + + apr_int32_t apr_recv(apr_socket_t, char *, apr_int32_t, time_t) Receive a message from a socket Arguments: - arg 1) Pointer to abstracted File descriptor (socket) + arg 1) Pointer to abstracted socket arg 2) buffer to store message in arg 3) size of buf (in bytes) -<!-- arg 4) OS specific flags to determine how to receive the message. - because of OS differences, it is best to always use zero. - we are including this flag to mimic POSIX, but may take it - out ---> - arg 4) Amount of data received in bytes + arg 4) time to wait for message from network, in seconds. + return) Amount of data received in bytes + APRStatus apr_initializenetaddr(APRNetAddrValue, APRUInt16, APRNetAddr); Initialize the fields of a APRNetAddr. assigning well known values as appropriate. This function only sets up values in the APRNetAddr