Apache HTTPD
Functions
sendrecv.c File Reference
#include "apr_arch_networkio.h"
#include "apr_support.h"

Go to the source code of this file.

Functions

apr_status_t apr_socket_send (apr_socket_t *sock, const char *buf, apr_size_t *len)
 
apr_status_t apr_socket_recv (apr_socket_t *sock, char *buf, apr_size_t *len)
 
apr_status_t apr_socket_sendto (apr_socket_t *sock, apr_sockaddr_t *where, apr_int32_t flags, const char *buf, apr_size_t *len)
 
apr_status_t apr_socket_recvfrom (apr_sockaddr_t *from, apr_socket_t *sock, apr_int32_t flags, char *buf, apr_size_t *len)
 
apr_status_t apr_socket_sendv (apr_socket_t *sock, const struct iovec *vec, apr_int32_t nvec, apr_size_t *len)
 

Function Documentation

◆ apr_socket_recv()

apr_status_t apr_socket_recv ( apr_socket_t sock,
char buf,
apr_size_t len 
)

< Set on non-blocking sockets * (timeout != 0) on which the * previous read() did not fill a buffer * completely. the next apr_socket_recv() * will first call select()/poll() rather than * going straight into read(). (Can also * be set by an application to force a * select()/poll() call before the next * read, in cases where the app expects * that an immediate read would fail.)

< Set on non-blocking sockets * (timeout != 0) on which the * previous read() did not fill a buffer * completely. the next apr_socket_recv() * will first call select()/poll() rather than * going straight into read(). (Can also * be set by an application to force a * select()/poll() call before the next * read, in cases where the app expects * that an immediate read would fail.)

< Set on non-blocking sockets * (timeout != 0) on which the * previous read() did not fill a buffer * completely. the next apr_socket_recv() * will first call select()/poll() rather than * going straight into read(). (Can also * be set by an application to force a * select()/poll() call before the next * read, in cases where the app expects * that an immediate read would fail.)

Definition at line 70 of file sendrecv.c.

◆ apr_socket_recvfrom()

apr_status_t apr_socket_recvfrom ( apr_sockaddr_t from,
apr_socket_t sock,
apr_int32_t  flags,
char buf,
apr_size_t len 
)

Definition at line 146 of file sendrecv.c.

◆ apr_socket_send()

apr_status_t apr_socket_send ( apr_socket_t sock,
const char buf,
apr_size_t len 
)

< like APR_INCOMPLETE_READ, but for write *

See also
APR_INCOMPLETE_READ

< like APR_INCOMPLETE_READ, but for write *

See also
APR_INCOMPLETE_READ

< like APR_INCOMPLETE_READ, but for write *

See also
APR_INCOMPLETE_READ

Definition at line 30 of file sendrecv.c.

◆ apr_socket_sendto()

apr_status_t apr_socket_sendto ( apr_socket_t sock,
apr_sockaddr_t where,
apr_int32_t  flags,
const char buf,
apr_size_t len 
)

Definition at line 112 of file sendrecv.c.

◆ apr_socket_sendv()

apr_status_t apr_socket_sendv ( apr_socket_t sock,
const struct iovec vec,
apr_int32_t  nvec,
apr_size_t len 
)

Definition at line 194 of file sendrecv.c.