diff options
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r-- | src/Network/Tox.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index 83a17037..46d87094 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -240,7 +240,7 @@ newTox :: TVar Onion.AnnouncedKeys -- ^ Store of announced keys we are a rende | |||
240 | -> [String] -- ^ Bind-address to listen on. Must provide at least one. | 240 | -> [String] -- ^ Bind-address to listen on. Must provide at least one. |
241 | -> ( ContactInfo extra -> SockAddr -> Session -> IO () ) | 241 | -> ( ContactInfo extra -> SockAddr -> Session -> IO () ) |
242 | -> Maybe SecretKey -- ^ Optional DHT secret key to use. | 242 | -> Maybe SecretKey -- ^ Optional DHT secret key to use. |
243 | -> ( Int -> Onion.OnionResponse Onion.N1 -> IO () ) -- ^ TCP-bound onion responses. | 243 | -> ( Int -> Onion.OnionMessage Encrypted -> IO () ) -- ^ TCP-bound onion responses. |
244 | -> IO (Tox extra) | 244 | -> IO (Tox extra) |
245 | newTox keydb bindspecs onsess suppliedDHTKey tcp = do | 245 | newTox keydb bindspecs onsess suppliedDHTKey tcp = do |
246 | addrs <- mapM (`getBindAddress` True) bindspecs | 246 | addrs <- mapM (`getBindAddress` True) bindspecs |
@@ -262,7 +262,7 @@ newToxOverTransport :: TVar Onion.AnnouncedKeys | |||
262 | -> ( ContactInfo extra -> SockAddr -> Session -> IO () ) | 262 | -> ( ContactInfo extra -> SockAddr -> Session -> IO () ) |
263 | -> Maybe SecretKey | 263 | -> Maybe SecretKey |
264 | -> Onion.UDPTransport | 264 | -> Onion.UDPTransport |
265 | -> ( Int -> Onion.OnionResponse Onion.N1 -> IO () ) -- ^ TCP-bound onion responses. | 265 | -> ( Int -> Onion.OnionMessage Encrypted -> IO () ) -- ^ TCP-bound onion responses. |
266 | -> IO (Tox extra) | 266 | -> IO (Tox extra) |
267 | newToxOverTransport keydb addr onNewSession suppliedDHTKey udp tcp = do | 267 | newToxOverTransport keydb addr onNewSession suppliedDHTKey udp tcp = do |
268 | roster <- newContactInfo | 268 | roster <- newContactInfo |