This library provides
reflex support for writing TCP servers and
clients. All the socket operations are wrapped to use Reflex
and the underlying sending/receiving/waiting/accepting operations are
performed on background threads.
The most important function in this library is
Reflex.Backend.Socket.socket, which wraps a
Socket to process
Event t ByteStrings.
Socket can come from:
Reflex.Backend.Socket.Accept.accept, if you're making a server;
Reflex.Backend.Socket.Connect.connect, if you're making a client; or
- Your favourite networking library.
example subdirectory for some examples. Example clients
and servers are provided.