diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/ki/kisendrcv.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/ki/kisendrcv.x')
-rw-r--r-- | sys/ki/kisendrcv.x | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/ki/kisendrcv.x b/sys/ki/kisendrcv.x new file mode 100644 index 00000000..8a319a35 --- /dev/null +++ b/sys/ki/kisendrcv.x @@ -0,0 +1,20 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# KI_SENDRCV -- Encode and send a packet to a remote server process, then +# read and decode the response packet. The opcode and subcode in the +# response packet must agree with those in the packet sent. + +int procedure ki_sendrcv (server, opcode, subcode) + +int server # os channel to server process +int opcode # function opcode +int subcode # function subcode (for drivers) + +int ki_send(), ki_receive() + +begin + if (ki_send (server, opcode, subcode) == ERR) + return (ERR) + else + return (ki_receive (server, opcode, subcode)) +end |