Skip to content

UDP in network module

The Network module (at least in 6.10.4) doesn't seem to have any way of creating UDP sockets, requiring using a combination of Network.Socket and Network.BSD, which are quite low level and whose docs are rather sparse. It would be useful if the higher level module also supported UDP. Also, the PortNum constructor in Network.Socket requires the port number in network byte order, i.e. on the x86 you have to byte-swap the PortNum arg. It would save a bit of confusion if (at minimum) the Haddock docs mentioned this.

Trac metadata
Trac field Value
Version 6.12.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries (other)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information