Ns write

From AOLserver Wiki
Revision as of 04:00, 11 October 2009 by Akhassin (talk | contribs)
Jump to navigation Jump to 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_writecontent, ns_writefp, ns_return

Category Documentation - Category Core Tcl API