Documentation

Hale.StreamingCommons.Data.Streaming.Network

Application data for a connected client.

Instances For

    Bind a TCP server socket to a port. Returns a listening socket. $$\text{bindPortTCP} : \text{UInt16} \to \text{String} \to \text{IO}(\text{Socket}\ \texttt{.listening})$$

    Equations
    Instances For

      Connect to a remote TCP server. Returns a connected socket and the address. $$\text{getSocketTCP} : \text{String} \to \text{UInt16} \to \text{IO}(\text{Socket}\ \texttt{.connected} \times \text{SockAddr})$$

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Accept a connection on a listening socket, retrying on transient errors. $$\text{acceptSafe} : \text{Socket}\ \texttt{.listening} \to \text{IO}(\text{Socket}\ \texttt{.connected} \times \text{SockAddr})$$

        Create AppData from a connected socket.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Run a TCP server: accept connections and handle each in a new task. $$\text{runTCPServer} : \text{UInt16} \to (\text{AppData} \to \text{IO}(\text{Unit})) \to \text{IO}(\text{Unit})$$

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For