Skip to content

ByteString based datagram communication

This patch adds ByteString datagram communication.

In the process it replaces the TCP based sendTo and recvFrom functions from the Network module with ByteString / datagram equivalents. Since sendTo and recvFrom seemed to be deprecated for anything more than superficial testing, the new versions would seem more useful.

It includes a fix to ensure Network.Socket.recvBufFrom and friends handle unix file sockets.

net003 has been included for testing the new features. I have only been able to test on GHC 6.6 on linux. Attempts to test with windows and hugs caused me issues I don't currently have time to deal with. If someone with these platforms can apply the patch and run the test case, I'd be very appreciative. I'll get onto any bugs discovered when I return.

I won't be available to guide this bug through for the next 9 days but wanted to get the proposal out there ready for when I get back.

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