aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-10-24 06:40:59 +0000
committerdos-reis <gdr@axiomatics.org>2008-10-24 06:40:59 +0000
commit3d4576ed847bfd84b3befaf7c5ae7ee62905ab2a (patch)
treee524e5791d71b812475aa2337690a7eb8a3c58b0 /src/include
parentecfc24269ea4455ec9c17a8fe5e45023e61fc7c0 (diff)
downloadopen-axiom-3d4576ed847bfd84b3befaf7c5ae7ee62905ab2a.tar.gz
Add basic support for stream client socket.
* lib/sockio-c.c (oa_inet_pton): Define. (oa_get_host_address): Likewise. * algebra/net.spad.pamphlet (IP4Address): New. (NetworkClientSocket): Likewise. (InetClientStreamSocket): Likewise. * algebra/data.spad.pamphlet (DataArray): Rename from DataBuffer. (ByteBuffer): Rename from ByteArray. Reimplement. * algebra/exposed.lsp.pamphlet: Expose IP4Address, InetClientStreamSocket, NetworkClientSocket.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/sockio.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/sockio.h b/src/include/sockio.h
index 88e8caaa..7188f560 100644
--- a/src/include/sockio.h
+++ b/src/include/sockio.h
@@ -86,10 +86,12 @@ typedef struct openaxiom_sio {
OPENAXIOM_EXPORT openaxiom_filedesc
- oa_open_local_client_stream_socket(const char*);
+ oa_open_local_client_stream_socket(const char*);
+OPENAXIOM_EXPORT int oa_inet_pton(const char*, int, openaxiom_byte*);
+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_open_ip4_client_stream_socket(const char*, openaxiom_port);
+ 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_read(openaxiom_socket,