openSocketF :: FudgetIO f => Host -> Port -> (Socket -> f b ho) -> f b ho
openSocketF host port fudget
type Host = String
type Port = Int
openSocketFcreates a (client) socket and connects it to another socket (a server). If the socket can not be created, or the connection can not be established, the program is terminated with an error message.
host :: Host
port :: Port
fudget :: Socket -> f b ho
openSocketF "news" 119 transceiverF
Communicating via sockets: transceiverF et al.
Creating passive sockets: openLSocketF.
Creating a socket with error handling: openSocketErrF.