transceiverF, receiverF, et al

Types

transceiverF :: Socket -> F String String
receiverF :: Socket -> F a String
transmitterF :: Socket -> F String a

Synopsis

transceiverF socket

Description

These fudgets allow communication via sockets. receiverF reads from a socket, transmitterF writes to a socket and transceiverF is a combination of the former two.

The input and output are streams of strings rather than streams of characters for efficiency reasons. The strings obtained from receiverF are arbitrary chunks of characters that have no relation to how the characters were grouped by the sender.

Arguments

socket :: Socket
The socket to read from and/or write to.

Example

 openSocketF "news" 119 transceiverF

See Also

Stdio communication: stdioF et al.

Creating sockets: openSocketF, openFileAsSocketF.