diff options
author | dos-reis <gdr@axiomatics.org> | 2008-10-25 03:21:55 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-10-25 03:21:55 +0000 |
commit | a3dccc344e57259f113b7f2d7e2761ad8131e60b (patch) | |
tree | 6cd6ea55fdfa2470c08355321af49cd650ca5963 /src/include | |
parent | ca39f5ae7631e3bedf6114f7ebe7dfa2a8579f76 (diff) | |
download | open-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/include')
-rw-r--r-- | src/include/sockio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/sockio.h b/src/include/sockio.h index 7188f560..f618dbc4 100644 --- a/src/include/sockio.h +++ b/src/include/sockio.h @@ -92,10 +92,15 @@ OPENAXIOM_EXPORT int oa_get_host_address(const char*, int, openaxiom_byte*); OPENAXIOM_EXPORT int oa_open_local_server_stream_socket(const char*); OPENAXIOM_EXPORT openaxiom_socket oa_connect_ip_port_stream(const openaxiom_byte*, int, openaxiom_port); + OPENAXIOM_EXPORT int oa_socket_write(openaxiom_socket, const openaxiom_byte*, int); +OPENAXIOM_EXPORT int oa_socket_write_byte(openaxiom_socket, openaxiom_byte); + OPENAXIOM_EXPORT int oa_socket_read(openaxiom_socket, openaxiom_byte*, int); +OPENAXIOM_EXPORT int oa_socket_read_byte(openaxiom_socket); + OPENAXIOM_EXPORT void oa_close_socket(openaxiom_socket); OPENAXIOM_EXPORT int |