summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-21 22:53:57 -0400
committerjoe <joe@jerkface.net>2018-06-21 22:53:57 -0400
commit44932179bf68377dc6a3b940ca8979bcd717beab (patch)
tree728c84abe491098ea2fbfb43f65ad2c85e033624 /examples/dhtd.hs
parent93526173379d57db17d6d7c0287d52d2c975203c (diff)
Remember whether peers are Tox or XMPP connections.
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 17e62cd7..0731d322 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1383,7 +1383,7 @@ newXmmpSink session@(Tox.NCrypto { ncOutgoingQueue = outGoingQVar, ncPacketQueue
1383-- order to set up translating conduits that simulate a remote XMPP server. 1383-- order to set up translating conduits that simulate a remote XMPP server.
1384announceToxJabberPeer :: PublicKey -- ^ This node's long-term user key. 1384announceToxJabberPeer :: PublicKey -- ^ This node's long-term user key.
1385 -> PublicKey -- ^ Remote tox node's long-term user key. 1385 -> PublicKey -- ^ Remote tox node's long-term user key.
1386 -> TChan ((ConnectionKey,SockAddr), Tcp.ConnectionEvent XML.Event) 1386 -> TChan ((ConnectionKey,ConnectionData), Tcp.ConnectionEvent XML.Event)
1387 -> SockAddr -- ^ Local bind address for incoming Tox packets. 1387 -> SockAddr -- ^ Local bind address for incoming Tox packets.
1388 -> SockAddr -- ^ Remote address for this connection. 1388 -> SockAddr -- ^ Remote address for this connection.
1389 -> STM Bool 1389 -> STM Bool
@@ -1393,7 +1393,7 @@ announceToxJabberPeer :: PublicKey -- ^ This node's long-term user key.
1393announceToxJabberPeer me them echan laddr saddr pingflag tsrc tsnk 1393announceToxJabberPeer me them echan laddr saddr pingflag tsrc tsnk
1394 = do 1394 = do
1395 atomically $ writeTChan echan 1395 atomically $ writeTChan echan
1396 ( (PeerKey saddr, laddr ) 1396 ( (PeerKey saddr, ConnectionData laddr XMPPServer.Tox )
1397 , Tcp.Connection pingflag xsrc xsnk ) 1397 , Tcp.Connection pingflag xsrc xsnk )
1398 return Nothing 1398 return Nothing
1399 where 1399 where