Ticket #7 (closed enhancement: fixed)
Allow creating a Network.TCP.Connection from a pre-exisiting Socket
|Reported by:||joshhoyt@…||Owned by:||somebody|
I already have a Socket object that I want to perform HTTP operations on. I want to use ByteStrings?, so I can't use the Stream instance for Socket from Network.Stream. I want to use Connection from Network.TCP, but the external API only allows connecting to a given host/port, not creating from an existing Socket. The attached patch exports a function that creates a Connection from a Socket.