> i want to write/read data to the soccerserver of the robocup. 
> the sample 
> code below works, but i want to have a handle for writing to 
> the server 
>   instead of SocketPrim.sendTo. how can i do that ?

SocketPrim.socketToHandle gives you back a Handle which you can use to
read/write to/from using Haskell's normal IO operations.  Note that you
need to call SocketPrim.connect, even for a Datagram socket, to fix the
endpoint for the socket.

Cheers,
        Simon

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to