Alfredo, Stefan --
OpenAxiom 1.3.0 (trunk) has basic support for TCP/IP stream client
sockets. The interface is still a bit rough but it is a start we can
use as basis to expand. For example, this
buf := byteBuffer 1024 -- create a byte buffer of capacity 1024
-- connect to NIST time server. Conenction may fail, or succeed
-- with a InetClientStreamSocket.
s := connectTo(host "time-a.nist.gov", port 13)$InetClientStreamSocket
s case "failed" => print "connection failed"
-- read bytes from the server and convert it to string for output.
n := readBytes!(s,buf)
print(buf::String::OutputForm)
-- when done, close the socket
close! s
Over the weekend (hoping to have time), I'll try to write a tutorial,
more examples and improve the TCP/IP support. Feedback most welcome.
-- Gaby
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
open-axiom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel