|:: Maybe [Char]|
The address to connect to. If ommitted we connect to
The number of priorities in the PQueue
The port to start the client on.
|-> (a -> Int)|
A function to return the priority level of an event
|-> (t -> t -> String)|
A function to return the string representation of an event
|-> [ParsecT [Char] () Identity a]|
A list of parsers that return Event objects
|-> IO (PQueue t, PQueue a, IO ())|
We return a pair of PQueues to use in communicating events. The first is for all events going to the server, the second is for events coming from the server. We also return a function to manually close both the socket and handle we use to connect to the server.