Home |
Function http_find_string_value Function http_add_get_functions Function http_add_post_functions Function http_set_browser_list Function xn_line_put Function http_set_put_function |
Function xn_line_putSends a line to the browser from a user-supplied Post or Get callback. int xn_line_put(struct io_context * io_context, long wait, int type); Parametersio_contextI/O context passed to the user supplied callback. waitNumber of seconds to wait for any previous sends to be acknowledged. typeFlags for the operation to perform (PUT_QUE to queue the data and PUT_SEND to send all queued data). return valueSOCKET_ERROR on error or a value >= 0 otherwise. This function copies data in io_context->buffer to the output queue. The amount of data to be queued is specified by io_context->length. If there is not enough room in the output queue, the data already queued will be sent to the browser. When the callback function returns, any data queued will be sent. Note that the maximum amount of data that can be sent with one call to this function is 1514 bytes, the size of the buffer pointed to by io_context->buffer.
|