#3868: UDP in network module
--------------------------------+-------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: libraries (other) | Version: 6.12.1
Resolution: worksforme | Keywords:
Difficulty: | Os: Linux
Testcase: | Architecture: x86
Failure: None/Unknown |
--------------------------------+-------------------------------------------
Changes (by tibbe):
* status: new => closed
* resolution: => worksforme
Comment:
You should be able to create an UDP socket by using the `AF_INET` socket
family and the `Datagram` socket type. I believe `fromIntegral
PORT_NUMBER` will do the correct translation for port numbers, but I agree
that the documentation could be better. I you still have problems creating
a datagram socket please file a bug at the new trac location:
http://trac.haskell.org/network
P.S. The network library doesn't handle zero length datagrams correctly,
see [http://trac.haskell.org/network/ticket/7 this ticket]. You can use
network-bytestring instead which doesn't have this problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3868#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs