diff options
author | oharboe <oharboe> | 2008-07-14 14:57:43 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-07-14 14:57:43 +0000 |
commit | 7d29c87e9911f65c6f984043245567b0d93243e0 (patch) | |
tree | 9cccb0989958b09f6f9f0f9b0fcd6b4187a73592 /doc/jim_man.txt | |
parent | a1fabeeb06d51b385283e8c4c89bea5cd28d970f (diff) | |
download | jimtcl-7d29c87e9911f65c6f984043245567b0d93243e0.zip jimtcl-7d29c87e9911f65c6f984043245567b0d93243e0.tar.gz jimtcl-7d29c87e9911f65c6f984043245567b0d93243e0.tar.bz2 |
2008-07-13 Uwe Klein <uklein@klein-messgeraete.de>
* doc/jim_man.txt : an overlook over jim command basics
and the added commands. incomplete, additions welcome.
Diffstat (limited to 'doc/jim_man.txt')
-rw-r--r-- | doc/jim_man.txt | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/doc/jim_man.txt b/doc/jim_man.txt new file mode 100644 index 0000000..88839ce --- /dev/null +++ b/doc/jim_man.txt @@ -0,0 +1,80 @@ +# what: jim commands, description, points to ponder + +jim + set var [value] + + dict + + array [get | set ] + set $array($elem) $val + the array command and array syntax $array($elem) is + an wrapper around dict! + + +package eventloop + after time/ms script + the script is mandatory! a blocking wait is not implemented ( good!? ) + returns event_handle + open: after cancel and remaining time query. ( stubs in C exist UK) + + vwait variable + work the eventloop until variable is accessed. + currently works only on change of variable content!! + returns ?variable value? + +package aio + aio.open + returns handle ?aio.file<nnn>? + + aio.socket <socketspec> <serverspec>|<remotehostspec> + socketspec may be stream, stream.server ( TODO : dgram , domain, ..... ) + serverspec may be [ANY|<InterfaceIPorName>]:<port|servicename> + remotehostspec may be <hostIPorName>:<port|servicename> + returns handle ?aio.socket<nnn>? | aio. + + $aio.handle + close + tell + seek + gets + read + write + ndelay [1|0] + readable [ {} | <readable event script> [ <eof event script> ] ] + noargs: return the scripts for readable event, optional eof event script. + returns {} on not setup + [ list <readable script> <eof script> ] + arg {} : remove event + arg <readable script> : setup script or read event, fold eof into this script + arg <readable script> <eof script> same as above, eof is handled separately. + + writable + same for writable, no eof though + onexception + same for out-of-band data + + accept + applys only to server sockets and should be used in a fileevent. + returns a new socket handle for the accepted connection. + + +package posix + signal <signame> [ <sigaction> ] + tell signal action for signal $signame or if given set action to $sigaction + $sigaction can be either default, ignore , debug or ( TODO: an action script + that works like a fileevent ) + in all cases the previous action is returned. + + sleep <seconds> + sleep number of seconds + + usleep <delay> [ <units> ] + call usleep/nanosleep with given value + bare or time as float plus unit ( one of s ms us ns ) + + pit + return unix second ( since epoch ) as a float(double) + Jpit + return Julian Date in days as a float(double)! + see http://en.wikipedia.org/wiki/Julian_Date + |