streaming api functions added

This commit is contained in:
orignal 2014-11-18 09:33:58 -05:00
parent 72c0d8443a
commit 77b7fff5ed
5 changed files with 62 additions and 26 deletions

View file

@ -42,7 +42,7 @@ namespace client
// streaming
i2p::stream::StreamingDestination * GetStreamingDestination () const { return m_StreamingDestination; };
i2p::stream::Stream * CreateStream (const i2p::data::LeaseSet& remote, int port = 0);
void AcceptStreams (const std::function<void (i2p::stream::Stream *)>& acceptor);
void AcceptStreams (const i2p::stream::StreamingDestination::Acceptor& acceptor);
void StopAcceptingStreams ();
bool IsAcceptingStreams () const;