summaryrefslogtreecommitdiff
path: root/KikiD/ClientState.hs
diff options
context:
space:
mode:
Diffstat (limited to 'KikiD/ClientState.hs')
-rw-r--r--KikiD/ClientState.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/KikiD/ClientState.hs b/KikiD/ClientState.hs
new file mode 100644
index 0000000..a80a392
--- /dev/null
+++ b/KikiD/ClientState.hs
@@ -0,0 +1,14 @@
1module KikiD.ClientState where
2
3import KikiD.Message
4import Control.Concurrent.STM.TBMQueue
5import Control.Concurrent
6
7data ClientState = CState {cliQueue :: TBMQueue KikiDMessage}
8
9mkClient = CState
10 { cliQueue = error "ERROR CState: cliQueue parameter is required"
11 }
12
13type ClientID = ThreadId
14threadIdToClient = id