commsec-keyexchange-0.2.1: Key agreement for commsec.

Safe HaskellNone

Network.CommSec.KeyExchange.Socket

Synopsis

Documentation

connect :: Socket -> SockAddr -> [PublicKey] -> PrivateKey -> IO (Maybe (PublicKey, Connection))Source

listen :: Socket -> Int -> IO ()

bind :: Socket -> SockAddr -> IO ()

socket :: Family -> SocketType -> ProtocolNumber -> IO Socket

send :: Connection -> ByteString -> IO ()

Send a datagram, first encrypting it, using the given secure connection.

data Connection

A connection is a secure bidirectional communication channel.

close :: Connection -> IO ()

Close a connection