¤ openSocketF, Host, et al

Types

openSocketF :: Host -> Port -> (Socket -> F a b) -> F a b
type Host = String
type Port = Int
type Socket = Int

Synopsis

openSocketF host port fudget

Description

openSocketF creates a (client) socket and connects it to another socket (a server).

Arguments

host :: Host
Host to connect to.
port :: Port
Port number on the given host.
fudget :: Socket -> F a b
A fudget that uses the created socket.

Example

 openSocketF "news" 119 transceiverF

See Also

Communicating via sockets: transceiverF et al.

Creating passive sockets: openLSocketF.