openFileAsSocketF :: (FudgetIO c) => String -> String -> (Socket -> c a b) -> c a b
openFileAsSocketF filename iomode fudget
openFileAsSocketF allows objects in the file system to be accessed using the sockets
machinery. This can be useful for communication via terminals
(/dev/tty??), named pipes (created with the mkfifo command),
or the audio device (typically /dev/audio).
filename :: Stringiomode :: Stringfopen(). The strings
"r", "w" and "rw" indicate read-only, write-only
and read/write access, respectively.
fudget :: Socket -> c a b
Opening network sockets: openSocketF
Opening a file with error handling: openFileAsSocketErrF.
The manual page for fopen().