Wed, 2 Jan 2002 10:37:53 -0000
> i want to write/read data to the soccerserver of the robocup.=20
> the sample=20
> code below works, but i want to have a handle for writing to=20
> the server=20
> 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.