Closed froozen closed 9 years ago
Proper definition:
startRicochet :: Socket -> [Contact] -> PortID -> Versions -> IO ()
startRicochet' :: ByteString -> PortID -> [Contact] -> PortID -> Versions -> IO ()
This would also be the practical application of #12.
As we're exporting our own monad, we should provide some pleasant functions to "run" it. I'd propose
startRicochet :: Socket -> [Contact] -> PortID -> Map Word8 (Connectiont -> Ricochet ()) -> IO ()
andstartRicochet' :: ByteString -> PortID -> [Contact] -> PortID -> Map Word8 (Connectiont -> Ricochet ()) -> IO ()
The second one takes the private key and the Tor control port and does the port-mapping for the user.