[Openmcl-devel] Playing with sockets
bennati at cognition.uni-freiburg.de
Tue Feb 12 07:18:01 CST 2013
I am trying to create a simple function that queries a server and
returns the answer.
I am using the socket functions integrated in Clozure to do so.
Until now I succeeded in sending the request to the server with the
> (ccl:with-open-socket (socket :address-family :internet :type
> :stream :connect :active
> :remote-host MY-HOST :remote-port MY-PORT) (format socket
But now I have no idea how to read the answer (string) that the server
gives in response to MY-STRING.
The only function that I have found, receive-from, operates only with
passive sockets and I cannot find the way to convert my socket into a
There must be a simpler way that I am missing.
Thanks for your help!
M.Sc. Stefano Bennati
Centre for Cognitive Science
D-79098 Freiburg, Germany
Phone: +49 761 203-4947
Fax: +49 761 203-4938
email: bennati at cognition.uni-freiburg.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel