Safe Haskell | None |
---|
- connect :: HostName -> PortNumber -> PublicKey -> PrivateKey -> IO Connection
- accept :: PortNumber -> PublicKey -> PrivateKey -> IO Connection
- send :: Connection -> ByteString -> IO ()
- recv :: Connection -> IO ByteString
- data Connection
- type HostName = String
- data PortNumber
Documentation
connect :: HostName -> PortNumber -> PublicKey -> PrivateKey -> IO ConnectionSource
accept :: PortNumber -> PublicKey -> PrivateKey -> IO ConnectionSource
send :: Connection -> ByteString -> IO ()
recv :: Connection -> IO ByteString
data Connection
A connection is a secure bidirectional communication channel.
Either a host name e.g., "haskell.org"
or a numeric host
address string consisting of a dotted decimal IPv4 address or an
IPv6 address e.g., "192.168.0.1"
.