home *** CD-ROM | disk | FTP | other *** search
- post
-
- post program callback_routine command
-
- The post command provides a means of sending commands to other Tcla
- programs that are currently running on your Amiga. "post" functions
- like the send command, except that post does immediately returns (rather
- than waiting for the remote command to execute and be replied to), and
- the user calling post can supply an optional callback routine, which will
- be sent to it by the remote program when that program finishes executing
- the requested Tcl command. For example,
-
- send smusloader song load foo
-
- would send a command to program "smusloader" to load song "foo" and
- wait for smusloader to reply.
-
- post smusloader loaddone song load foo
-
- would also send a command to smusloader to load foo, but it would return
- immediately. Later, when foo finishes the request, it will send a
- command, in this case "loaddone" to your program, with arguments being
- the result string and TCL_OK/TCL_ERROR return value passed as arguments
- to your routine.
-
- If an empty string is sent, return is still immediate but no callback
- is performed.
-
-