summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 8e34d4fe..7aa5cd2c 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1537,7 +1537,7 @@ newXmmpSink session@(Tox.NCrypto { ncOutgoingQueue = outGoingQVar, ncPacketQueue
1537-- order to set up translating conduits that simulate a remote XMPP server. 1537-- order to set up translating conduits that simulate a remote XMPP server.
1538announceToxJabberPeer :: PublicKey -- ^ This node's long-term user key. 1538announceToxJabberPeer :: PublicKey -- ^ This node's long-term user key.
1539 -> PublicKey -- ^ Remote tox node's long-term user key. 1539 -> PublicKey -- ^ Remote tox node's long-term user key.
1540 -> TChan ((ConnectionKey,ConnectionData), Tcp.ConnectionEvent XML.Event) 1540 -> TChan ((SockAddr,ConnectionData), Tcp.ConnectionEvent XML.Event)
1541 -> SockAddr -- ^ Local bind address for incoming Tox packets. 1541 -> SockAddr -- ^ Local bind address for incoming Tox packets.
1542 -> SockAddr -- ^ Remote address for this connection. 1542 -> SockAddr -- ^ Remote address for this connection.
1543 -> STM Bool 1543 -> STM Bool
@@ -1547,7 +1547,7 @@ announceToxJabberPeer :: PublicKey -- ^ This node's long-term user key.
1547announceToxJabberPeer me them echan laddr saddr pingflag tsrc tsnk 1547announceToxJabberPeer me them echan laddr saddr pingflag tsrc tsnk
1548 = do 1548 = do
1549 atomically $ writeTChan echan 1549 atomically $ writeTChan echan
1550 ( (PeerKey saddr, ConnectionData laddr XMPPServer.Tox ) 1550 ( (saddr, ConnectionData (Left (Local laddr)) XMPPServer.Tox )
1551 , Tcp.Connection pingflag xsrc xsnk ) 1551 , Tcp.Connection pingflag xsrc xsnk )
1552 return Nothing 1552 return Nothing
1553 where 1553 where