No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
libraries
.gitignore
LICENSE
README.md

README.md

Clean select loop

Write network applications in a reactive way in clean

Libraries

  • TCPServer

    Contains the master function serve.

  • TCPServer.Listener

    Contains an abstraction over serve only handling the listening part.

  • TCPServer.Connection

    Contains an abstraction over serve only handling one tcp connection to a server.

  • TCPServer.HTTP

    Contains an abstraction over TCPServer.Connection that can send one HTTPRequest.

Examples

To build the examples there are two options. If you want to build with clm, just run make in the examples directory. If you want to build with cpm, run make prj followed by cpm make in the examples directory.

  • Daytime

    Implements the RFC 867 tcp based daytime service

  • Echo

    Implements the RFC 862 tcp based echo service

  • Wget

    Implements a simple http file downloader

  • IRC https://github.com/clean-cloogle/clean-irc/ uses this library to implement a IRC bot interface