aboutsummaryrefslogtreecommitdiff
path: root/src/interp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-10-25 03:21:55 +0000
committerdos-reis <gdr@axiomatics.org>2008-10-25 03:21:55 +0000
commita3dccc344e57259f113b7f2d7e2761ad8131e60b (patch)
tree6cd6ea55fdfa2470c08355321af49cd650ca5963 /src/interp
parentca39f5ae7631e3bedf6114f7ebe7dfa2a8579f76 (diff)
downloadopen-axiom-a3dccc344e57259f113b7f2d7e2761ad8131e60b.tar.gz
* interp/sys-os.boot: Import oa_socket_read_byte as
readByteFromStreamSocket. Import oa_socket_write_byte as writeByteToStreamSocket. * include/sockio.h (oa_socket_read_byte): Declare. (oa_socket_write_byte): Likewise. * lib/sockio-c.c (oa_socket_read_byte): Define. (oa_socket_write_byte): Likewise. * algebra/net.spad.pamphlet (readByteIfCan!$InetClientStreamSocket): Implement. (writeByteIfCan!$InetClientStreamSocket): Likewise. * etc/asq.c.pamphlet: Update build rules for asq$(EXEEXT).
Diffstat (limited to 'src/interp')
-rw-r--r--src/interp/sys-os.boot14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/interp/sys-os.boot b/src/interp/sys-os.boot
index bfa70eba..58e42706 100644
--- a/src/interp/sys-os.boot
+++ b/src/interp/sys-os.boot
@@ -126,12 +126,26 @@ import oa__get__host__address: (string, int, writeonly buffer byte) -> int
import oa__connect__ip__port__stream: (readonly buffer byte,int,int) -> int
for connectToHostAndPort
+++ Try to read bytes of data from socket.
+++ Return -1 for failure; number of read bytes, otherwise.
import oa__socket__read: (int,writeonly buffer byte,int) -> int
for readFromStreamSocket
+
+++ Try to read a byte socket from a socket.
+++ Return -1 on failure; byte read, otherwise.
+import oa__socket__read__byte: int -> int
+ for readByteFromStreamSocket
+++ Try to write bytes of data to socket.
+++ Return -1 on failure; actual bytes written, otherwise.
import oa__socket__write: (int,readonly buffer byte,int) -> int
for writeToStreamSocket
+++ Try to write a byte to socket.
+++ Return -1 on failure; the written byte, otherwise.
+import oa__socket__write__byte: (int,int) -> int
+ for writeByteToStreamSocket
+
import oa__close__socket: int -> int for closeSocket
--% OpenAxiom subsystem socket support