
2 Jan
2002
2 Jan
'02
5:37 a.m.
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