ยค openSocketErrF, openLSocketErrF, et al

Sockets

Types

openSocketErrF :: FudgetIO f =>
                  Host ->
                  Port -> (IOError -> f hi ho) -> (Socket -> f hi ho) -> f hi ho
openLSocketErrF :: FudgetIO f =>
                   Port -> (IOError -> f hi ho) -> (LSocket -> f hi ho) -> f hi ho
openFileAsSocketErrF :: FudgetIO f =>
                        String ->
                        String ->
                        (IOError -> f hi ho) -> (Socket -> f hi ho) -> f hi ho

Description

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.

See Also

The corresponding plain socket opening functions: openSocketF, openLSocketF, openFileAsSocketF.