diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dhtd.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index 527af7e7..4b38a7ea 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -99,7 +99,7 @@ import Presence | |||
99 | import XMPPServer | 99 | import XMPPServer |
100 | import Connection | 100 | import Connection |
101 | import ToxToXMPP | 101 | import ToxToXMPP |
102 | import qualified Server (ConnectionEvent(..)) | 102 | import qualified Connection.Tcp (ConnectionEvent(..)) |
103 | 103 | ||
104 | 104 | ||
105 | showReport :: [(String,String)] -> String | 105 | showReport :: [(String,String)] -> String |
@@ -987,7 +987,7 @@ noArgPing :: (x -> IO (Maybe r)) -> [String] -> x -> IO (Maybe r) | |||
987 | noArgPing f [] x = f x | 987 | noArgPing f [] x = f x |
988 | noArgPing _ _ _ = return Nothing | 988 | noArgPing _ _ _ = return Nothing |
989 | 989 | ||
990 | announceToxConnection :: TChan ((ConnectionKey,SockAddr), Server.ConnectionEvent XML.Event) | 990 | announceToxConnection :: TChan ((ConnectionKey,SockAddr), Connection.Tcp.ConnectionEvent XML.Event) |
991 | -> SockAddr | 991 | -> SockAddr |
992 | -> SockAddr | 992 | -> SockAddr |
993 | -> STM Bool | 993 | -> STM Bool |
@@ -997,7 +997,7 @@ announceToxConnection :: TChan ((ConnectionKey,SockAddr), Server.ConnectionEvent | |||
997 | announceToxConnection echan laddr saddr pingflag tsrc tsnk | 997 | announceToxConnection echan laddr saddr pingflag tsrc tsnk |
998 | = atomically $ writeTChan echan | 998 | = atomically $ writeTChan echan |
999 | ( (PeerKey saddr, laddr ) | 999 | ( (PeerKey saddr, laddr ) |
1000 | , Server.Connection pingflag xsrc xsnk ) | 1000 | , Connection.Tcp.Connection pingflag xsrc xsnk ) |
1001 | where | 1001 | where |
1002 | xsrc = tsrc =$= toxToXmpp | 1002 | xsrc = tsrc =$= toxToXmpp |
1003 | xsnk = flushPassThrough xmppToTox =$= tsnk | 1003 | xsnk = flushPassThrough xmppToTox =$= tsnk |