From 3d4576ed847bfd84b3befaf7c5ae7ee62905ab2a Mon Sep 17 00:00:00 2001 From: dos-reis Date: Fri, 24 Oct 2008 06:40:59 +0000 Subject: 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. --- src/include/sockio.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include') 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, -- cgit v1.2.3