Difference between revisions of "Ns write"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 697)
 
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
 
'''SEE ALSO'''
 
'''SEE ALSO'''
  
: [[ns_writefp]], [[ns_return]]
+
: [[ns_startcontent]], [[ns_writefp]], [[ns_return]]
  
 
----
 
----
  
 
[[Category Documentation]] - [[Category Core Tcl API]]
 
[[Category Documentation]] - [[Category Core Tcl API]]

Latest revision as of 04:01, 11 October 2009

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