Ns write

From AOLserver Wiki
Jump to: navigation, search

Man page: http://aolserver.com/docs/tcl/ns_write.html


NAME

ns_write - Write data to the current connection's socket.

SYNOPSIS

ns_write ?connid? string

DESCRIPTION

This command writes the string immediately to the current connection's socket. It can be used in place of ns_return or ns_respond to send back responses. AOLserver will not include any headers when using ns_write.
Returns 1 if write was successful and 0 if write failed. This can be useful to determine if the client has closed the connection, possibly by hitting the stop button.

SEE ALSO

ns_startcontent, ns_writefp, ns_return

Category Documentation - Category Core Tcl API