Safe Haskell | None |
---|
- connect :: Socket -> SockAddr -> [PublicKey] -> PrivateKey -> IO (Maybe (PublicKey, Connection))
- accept :: Socket -> [PublicKey] -> PrivateKey -> IO (Maybe (PublicKey, Connection))
- listen :: Socket -> Int -> IO ()
- bind :: Socket -> SockAddr -> IO ()
- socket :: Family -> SocketType -> ProtocolNumber -> IO Socket
- send :: Connection -> ByteString -> IO ()
- recv :: Connection -> IO ByteString
- data Connection
- close :: Connection -> IO ()
Documentation
connect :: Socket -> SockAddr -> [PublicKey] -> PrivateKey -> IO (Maybe (PublicKey, Connection))Source
accept :: Socket -> [PublicKey] -> PrivateKey -> IO (Maybe (PublicKey, Connection))Source
send :: Connection -> ByteString -> IO ()
Send a datagram, first encrypting it, using the given secure connection.
recv :: Connection -> IO ByteString
data Connection
A connection is a secure bidirectional communication channel.
close :: Connection -> IO ()
Close a connection