Difference between revisions of "Tcl API"
Jump to navigation
Jump to search
(categorized ns_register_proc and ns_unregister_proc) |
|||
(30 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
Like what you see here? Want to try your hand at documenting a command, too? Here's [[how to document the core Tcl API]]. | Like what you see here? Want to try your hand at documenting a command, too? Here's [[how to document the core Tcl API]]. | ||
− | + | You can [http://aolserver.am.net/downloads/tcl-core.tip download] a syntax method tip / auto-completion file (from aolserver.am.net) for the free [http://www.activestate.com/komodo-edit Komodo Edit 5] (includes Tcl, all of ns_* APIs and some popular AOLserver modules and Tcl packages). Place it into ''"%ProgramFiles%\ActiveState Komodo Edit 5\lib\support\tcl\"'' replacing the default Tcl-only file that comes with Komodo Edit. | |
− | + | == ADP, Request and Response-oriented commands == | |
− | : [[ | + | : [[ns_adp_abort]], [[ns_adp_append]], [[ns_adp_argc]], [[ns_adp_argv]], [[ns_adp_bind_args]], [[ns_adp_break]], [[ns_adp_close]], [[ns_adp_ctl]], [[ns_adp_debug]], [[ns_adp_debuginit]], [[ns_adp_dir]], [[ns_adp_dump]], [[ns_adp_eval]], [[ns_adp_exception]], [[ns_adp_flush]], [[ns_adp_include]], [[ns_adp_mime]], [[ns_adp_mimetype]], [[ns_adp_parse]], [[ns_adp_puts]] ([[ns_puts]]), [[ns_adp_return]], [[ns_adp_safeeval]], [[ns_adp_stats]], [[ns_adp_stream]], [[ns_adp_tell]], [[ns_adp_trunc]] |
− | : [[ | + | :'''Registered (fka fancy) ADP tags:''' |
+ | :[[ns_adp_registeradp]] (same as deprecated [[ns_adp_registertag]]) | ||
+ | :[[ns_adp_registerproc]] | ||
+ | :[[ns_adp_registerscript]] (same as deprecated [[ns_register_adptag]]) | ||
+ | :'''Request information and received content''': | ||
+ | : [[ns_conn]], [[ns_conncptofp]] (same as deprecated [[ns_writecontent]]) | ||
: [[ns_getform]], [[ns_getformfile]] | : [[ns_getform]], [[ns_getformfile]] | ||
− | |||
: [[ns_queryexists]], [[ns_queryget]], [[ns_querygetall]] | : [[ns_queryexists]], [[ns_queryget]], [[ns_querygetall]] | ||
+ | : [[ns_browsermatch]] | ||
− | : [[ns_return]], [[ns_returnadminnotice]], [[ns_returnbadrequest]], [[ns_returnerror]], [[ns_returnfile]], [[ns_returnforbidden]], [[ns_returnfp]], [[ns_returnnotfound]], [[ns_returnnotice]], [[ns_returnok]], [[ns_returnredirect]], [[ns_returnunauthorized]] | + | :'''Standard response commands:''' |
+ | : [[ns_return]], [[ns_returnadminnotice]], [[ns_returnbadrequest]], [[ns_returnerror]], [[ns_returnfile]], [[ns_returnforbidden]], [[ns_returnfp]], [[ns_returnmoved]], [[ns_returnnotfound]], [[ns_returnnotice]], [[ns_returnok]], [[ns_returnredirect]], [[ns_returnunauthorized]] | ||
− | : [[ns_setexpires]], [[ | + | :'''More control over response:''' |
+ | : [[ns_setexpires]], [[ns_updateheader]], [[ns_respond]] | ||
− | : [[ | + | :'''Manual response:''' |
+ | : [[ns_headers]], [[ns_startcontent]], [[ns_write]], [[ns_writefp]] / [[ns_connsendfp]] (deprecated) | ||
== Cache commands == | == Cache commands == | ||
− | : [[ns_cache_flush]], [[ns_cache_keys]], [[ns_cache_names]], [[ns_cache_size]], [[ns_cache_stats]] | + | : [[ns_cache]], [[ns_cache_flush]], [[ns_cache_keys]], [[ns_cache_names]], [[ns_cache_size]], [[ns_cache_stats]] |
== Concurrent programming commands == | == Concurrent programming commands == | ||
Line 33: | Line 41: | ||
: [[keyldel]], [[keylget]], [[keylkeys]], [[keylset]] | : [[keyldel]], [[keylget]], [[keylkeys]], [[keylset]] | ||
− | * [[Thread-shared | + | * [[Thread-shared Variables]] (NSVs): |
: [[nsv_get]], [[nsv_exists]], [[nsv_set]], [[nsv_incr]], [[nsv_append]], [[nsv_lappend]], [[nsv_array]], [[nsv_unset]], [[nsv_names]] | : [[nsv_get]], [[nsv_exists]], [[nsv_set]], [[nsv_incr]], [[nsv_append]], [[nsv_lappend]], [[nsv_array]], [[nsv_unset]], [[nsv_names]] | ||
Line 69: | Line 77: | ||
== Internationalization (I18N) support commands == | == Internationalization (I18N) support commands == | ||
− | : [[ns_charsets]], [[ns_choosecharset]], [[ns_cookiecharset]], [[ns_encodingforcharset]], [[ns_encodingfortype]], [[ns_formfieldcharset]], [[ns_urlcharset]] | + | : [[ns_charsets]], [[ns_choosecharset]], [[ns_cookiecharset]], [[ns_encodingforcharset]], [[ns_encodingfortype]], [[ns_formfieldcharset]], [[ns_setformencoding]] / [[ns_urlcharset]] |
== Logging commands == | == Logging commands == | ||
Line 81: | Line 89: | ||
== Request processing commands == | == Request processing commands == | ||
− | : [[ns_register_proc]], [[ns_unregister_proc]] | + | : [[ns_register_adp]], [[ns_register_cgi]], [[ns_register_encoding]], [[ns_register_filter_error]], [[ns_register_fastpath]], [[ns_register_filter]], [[ns_register_filter_shortcut]], [[ns_register_proc]], [[ns_register_trace]], [[ns_unregister_adp]], [[ns_unregister_proc]] |
== Scheduling commands == | == Scheduling commands == | ||
Line 93: | Line 101: | ||
== Server introspection commands == | == Server introspection commands == | ||
− | : [[ns_env]], [[ns_info]], [[ns_server]], [[ns_stats]] | + | : [[ns_driver]], [[ns_env]], [[ns_info]], [[ns_server]], [[ns_stats]] (3.x only, defunct in 4.0+) |
== Socket I/O commands == | == Socket I/O commands == | ||
Line 105: | Line 113: | ||
== Tcl interpreter management commands == | == Tcl interpreter management commands == | ||
− | : [[ns_cleanup]], [[ns_eval]], [[ns_ictl]], [[ns_init]], [[ns_markfordelete]], [[ns_reinit]] | + | : [[ns_cleanup]], [[ns_eval]], [[ns_interp_ctl]] (4.5+) / [[ns_ictl]] (4.0), [[ns_init]], [[ns_loop_ctl]], [[ns_markfordelete]], [[ns_reinit]] |
== Time commands == | == Time commands == | ||
Line 113: | Line 121: | ||
== Uncategorized == | == Uncategorized == | ||
− | : [[ns_cpfp]], [[ns_crypt]], [[ | + | : [[ns_cpfp]], [[ns_crypt]], [[ns_getcsv]], [[ns_geturl]], [[ns_guesstype]], [[ns_isformcached]], [[ns_issmallint]], [[ns_paren]], [[ns_parseheader]], [[ns_parsequery]], [[ns_rand]], [[ns_resetcachedform]], [[ns_sendmail]], [[ns_sleep]], [[ns_sourceproc]], [[ns_url2file]], [[ns_urldecode]], [[ns_urlencode]], [[ns_uudecode]], [[ns_uuencode]], [[ns_zlib]] |
[[Category:Documentation]] | [[Category:Documentation]] |
Latest revision as of 20:07, 23 June 2010
Links to all of the Tcl commands provided by the AOLserver core "out of the box". To view a complete list of these commands in alphabetical order, try the Category:Core Tcl API page.
Like what you see here? Want to try your hand at documenting a command, too? Here's how to document the core Tcl API.
You can download a syntax method tip / auto-completion file (from aolserver.am.net) for the free Komodo Edit 5 (includes Tcl, all of ns_* APIs and some popular AOLserver modules and Tcl packages). Place it into "%ProgramFiles%\ActiveState Komodo Edit 5\lib\support\tcl\" replacing the default Tcl-only file that comes with Komodo Edit.
Contents
- 1 ADP, Request and Response-oriented commands
- 2 Cache commands
- 3 Concurrent programming commands
- 4 Custom data structures and variable manipulation commands
- 5 Database commands
- 6 DNS lookup commands
- 7 File manipulation commands
- 8 HTML manipulation commands
- 9 HTTP commands
- 10 Image manipulation commands
- 11 Internationalization (I18N) support commands
- 12 Logging commands
- 13 Request authorization commands
- 14 Request processing commands
- 15 Scheduling commands
- 16 Server configuration commands
- 17 Server introspection commands
- 18 Socket I/O commands
- 19 Tcl channel management commands
- 20 Tcl interpreter management commands
- 21 Time commands
- 22 Uncategorized
ADP, Request and Response-oriented commands
- ns_adp_abort, ns_adp_append, ns_adp_argc, ns_adp_argv, ns_adp_bind_args, ns_adp_break, ns_adp_close, ns_adp_ctl, ns_adp_debug, ns_adp_debuginit, ns_adp_dir, ns_adp_dump, ns_adp_eval, ns_adp_exception, ns_adp_flush, ns_adp_include, ns_adp_mime, ns_adp_mimetype, ns_adp_parse, ns_adp_puts (ns_puts), ns_adp_return, ns_adp_safeeval, ns_adp_stats, ns_adp_stream, ns_adp_tell, ns_adp_trunc
- Registered (fka fancy) ADP tags:
- ns_adp_registeradp (same as deprecated ns_adp_registertag)
- ns_adp_registerproc
- ns_adp_registerscript (same as deprecated ns_register_adptag)
- Request information and received content:
- ns_conn, ns_conncptofp (same as deprecated ns_writecontent)
- ns_getform, ns_getformfile
- ns_queryexists, ns_queryget, ns_querygetall
- ns_browsermatch
- Standard response commands:
- ns_return, ns_returnadminnotice, ns_returnbadrequest, ns_returnerror, ns_returnfile, ns_returnforbidden, ns_returnfp, ns_returnmoved, ns_returnnotfound, ns_returnnotice, ns_returnok, ns_returnredirect, ns_returnunauthorized
- More control over response:
- ns_setexpires, ns_updateheader, ns_respond
- Manual response:
- ns_headers, ns_startcontent, ns_write, ns_writefp / ns_connsendfp (deprecated)
Cache commands
Concurrent programming commands
Custom data structures and variable manipulation commands
- TclX keyed lists:
- Thread-shared Variables (NSVs):
- Sets and multisets:
- ???
Database commands
- ns_buildsqldate, ns_buildsqltime, ns_buildsqltimestamp, ns_db, ns_dbquotename, ns_dbquotevalue, ns_localsqltimestamp, ns_parsesqldate, ns_parsesqltime, ns_parsesqltimestamp, ns_writecsv
DNS lookup commands
File manipulation commands
- ns_chmod, ns_cp, ns_ftruncate, ns_link, ns_mkdir, ns_mktemp, ns_normalizepath, ns_openexcl, ns_purgefiles, ns_rename, ns_rmdir, ns_rollfile, ns_symlink, ns_tmpnam, ns_truncate, ns_unlink
HTML manipulation commands
- ns_formvalueput, ns_hrefs, ns_htmlselect, ns_quotehtml, ns_striphtml, ns_tagelement, ns_tagelementset
HTTP commands
Image manipulation commands
Internationalization (I18N) support commands
- ns_charsets, ns_choosecharset, ns_cookiecharset, ns_encodingforcharset, ns_encodingfortype, ns_formfieldcharset, ns_setformencoding / ns_urlcharset
Logging commands
Request authorization commands
Request processing commands
- ns_register_adp, ns_register_cgi, ns_register_encoding, ns_register_filter_error, ns_register_fastpath, ns_register_filter, ns_register_filter_shortcut, ns_register_proc, ns_register_trace, ns_unregister_adp, ns_unregister_proc
Scheduling commands
- ns_after, ns_atclose, ns_atexit, ns_atshutdown, ns_atsignal, ns_cancel, ns_pause, ns_resume, ns_schedule_proc, ns_schedule_daily, ns_schedule_weekly, ns_shutdown, ns_unschedule_proc
Server configuration commands
- ns_config, ns_configsection, ns_configsections, ns_library, ns_limits, ns_modulepath, ns_param, ns_pools, ns_section
Server introspection commands
Socket I/O commands
- ns_sock, ns_sockaccept, ns_sockblocking, ns_sockcallback, ns_sockcheck, ns_sockclose, ns_sockdup, ns_sockerrno, ns_socketpair, ns_sockioctl, ns_socklisten, ns_socklistencallback, ns_socknbclose, ns_socknonblocking, ns_socknread, ns_sockopen, ns_sockpair, ns_sockreadwait, ns_sockselect, ns_socksend, ns_sockstrerror
Tcl channel management commands
Tcl interpreter management commands
- ns_cleanup, ns_eval, ns_interp_ctl (4.5+) / ns_ictl (4.0), ns_init, ns_loop_ctl, ns_markfordelete, ns_reinit