openSocketErrF :: FudgetIO f => Host -> Port -> (IOError -> f b ho) -> (Socket -> f b ho) -> f b ho openLSocketErrF :: FudgetIO f => Port -> (IOError -> f b ho) -> (LSocket -> f b ho) -> f b ho openFileAsSocketErrF :: FudgetIO f => String -> String -> (IOError -> f b ho) -> (Socket -> f b ho) -> f b ho
These functions opens sockets in the same way as the corresponding functions
without Err
in the name, except that these functions have an extra
error handler argument. The error handler will be called if the socket
couldn't be opened. The corresponding plain functions terminate the program
with an error message.
The corresponding plain socket opening functions: openSocketF, openLSocketF, openFileAsSocketF.