On Thu, 11 Jan 2007, John Ky wrote:
Does anyone know where I can find a simple UDP client/server written in
Haskell?
There is some support as part of a SuperCollider wrapper:
http://www.slavepianos.org/rd/sw/sw-69/Sound/OpenSoundControl/UDP.hs
___
I think he meant something more along the lines of (or exactly) this, but in
Haskell
http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html
I for one would also be interested in reading a tutorial like this using the
ghc libs
-Dan
On 1/11/07, Henning Thielemann [EMAIL
Hi John,
On Jan 11, 2007, at 1:58 AM, John Ky wrote:
Hello,
Does anyone know where I can find a simple UDP client/server
written in Haskell?
Something along the lines of an echo server would do.
Thanks
-John
Try:
--
-- UDPEchoServer.hs: Exactly what the name says, a datagram echo
Hi John,
On Jan 11, 2007, at 10:35 AM, Gregory Wright wrote:
Hi John,
On Jan 11, 2007, at 1:58 AM, John Ky wrote:
Hello,
Does anyone know where I can find a simple UDP client/server
written in Haskell?
Something along the lines of an echo server would do.
Thanks
-John
Try:
Hi,
What's wrong with my UDP client?
echoClient :: IO ()
echoClient = withSocketsDo $ do
putStrLn [a]
sock - socket AF_INET Datagram 0
putStrLn [b]
connect sock (SockAddrInet 9900 iNADDR_ANY)
putStrLn [c]
n - send sock hi
putStrLn [d]
return ()
I get:
*Main echoClient
Nevermind,
I just got the client to work:
echoClient :: IO ()
echoClient = withSocketsDo $ do
sock - socket AF_INET Datagram 0
n - sendTo sock hi (SockAddrInet echoPort 0x0107f)
return ()
Thanks everyone for your help.
-John
On 1/12/07, John Ky [EMAIL PROTECTED] wrote:Hi,
Hello,
Does anyone know where I can find a simple UDP client/server written in
Haskell?
Something along the lines of an echo server would do.
Thanks
-John
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org