summaryrefslogtreecommitdiff
path: root/Presence/XMPP.hs
blob: f361641eac3a74ebc21e7cc3f83327c479a554e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{-# LANGUAGE FlexibleContexts #-}
module XMPP 
    ( module XMPP
    , module XMPPTypes
    , quitListening
    )  where

import ServerC
import XMPPTypes

import Data.HList
import Network.Socket (Family)
import Network.BSD (PortNumber)
import Control.Concurrent.STM

listenForXmppClients
  :: (HList t1, HExtend e l (HCons PortNumber t1), XMPPSession t) =>
     Family -> XMPPClass t -> e -> l -> IO ServerHandle
listenForXmppClients addr_family session_factory port st = do
    putStrLn "unimplemented: listenForXmppClients"
    dummyServerHandle
    -- TODO

listenForRemotePeers
  :: (HList t1, HExtend e l (HCons PortNumber t1), XMPPSession t) =>
     Family -> XMPPClass t -> e -> l -> IO ServerHandle
listenForRemotePeers addrfamily session_factory port st = do
    putStrLn "unimplemented: listenForRemotePeers"
    dummyServerHandle
    -- TODO

seekRemotePeers :: XMPPConfig config =>
     config -> TChan Presence -> IO ()
seekRemotePeers config chan = do
    putStrLn "unimplemented: seekRemotePeers"
    return ()