Download Dynamic C TCP/IP

Transcript
http_sock_write
int http_sock_write( HttpState *state, byte *dp, int len );
DESCRIPTION
HTTP wrapper function for blocking writes. This function can be used to write data
from a root buffer to a socket associated with a particular HTTP server. This function
is intended for use in CGI applications.
PARAMETERS
state
HTTP state pointer, as provided in the first parameter to the CGI
function.
dp
pointer to buffer containing data to be written
len
maximum number of bytes to write to the socket
RETURN VALUE
Number of bytes of written or -1 if there was an error
LIBRARY
HTTP.LIB
Chapter 4: HTTP Server
255