|
|
@ -94,6 +94,8 @@ namespace client |
|
|
|
const int STREAMING_PROFILE_BULK = 1; // high bandwidth
|
|
|
|
const int STREAMING_PROFILE_BULK = 1; // high bandwidth
|
|
|
|
const int STREAMING_PROFILE_INTERACTIVE = 2; // low bandwidth
|
|
|
|
const int STREAMING_PROFILE_INTERACTIVE = 2; // low bandwidth
|
|
|
|
const int DEFAULT_STREAMING_PROFILE = STREAMING_PROFILE_BULK; |
|
|
|
const int DEFAULT_STREAMING_PROFILE = STREAMING_PROFILE_BULK; |
|
|
|
|
|
|
|
const char I2CP_PARAM_STREAMING_MAX_CONCURRENT_STREAMS[] = "i2p.streaming.maxConcurrentStreams"; |
|
|
|
|
|
|
|
const int DEFAULT_MAX_CONCURRENT_STREAMS = 2048; |
|
|
|
|
|
|
|
|
|
|
|
typedef std::function<void (std::shared_ptr<i2p::stream::Stream> stream)> StreamRequestComplete; |
|
|
|
typedef std::function<void (std::shared_ptr<i2p::stream::Stream> stream)> StreamRequestComplete; |
|
|
|
|
|
|
|
|
|
|
@ -269,6 +271,7 @@ namespace client |
|
|
|
int GetStreamingAckDelay () const { return m_StreamingAckDelay; } |
|
|
|
int GetStreamingAckDelay () const { return m_StreamingAckDelay; } |
|
|
|
int GetStreamingOutboundSpeed () const { return m_StreamingOutboundSpeed; } |
|
|
|
int GetStreamingOutboundSpeed () const { return m_StreamingOutboundSpeed; } |
|
|
|
int GetStreamingInboundSpeed () const { return m_StreamingInboundSpeed; } |
|
|
|
int GetStreamingInboundSpeed () const { return m_StreamingInboundSpeed; } |
|
|
|
|
|
|
|
int GetStreamingMaxConcurrentStreams () const { return m_StreamingMaxConcurrentStreams; } |
|
|
|
bool IsStreamingAnswerPings () const { return m_IsStreamingAnswerPings; } |
|
|
|
bool IsStreamingAnswerPings () const { return m_IsStreamingAnswerPings; } |
|
|
|
|
|
|
|
|
|
|
|
// datagram
|
|
|
|
// datagram
|
|
|
@ -305,9 +308,7 @@ namespace client |
|
|
|
std::unique_ptr<EncryptionKey> m_StandardEncryptionKey; |
|
|
|
std::unique_ptr<EncryptionKey> m_StandardEncryptionKey; |
|
|
|
std::unique_ptr<EncryptionKey> m_ECIESx25519EncryptionKey; |
|
|
|
std::unique_ptr<EncryptionKey> m_ECIESx25519EncryptionKey; |
|
|
|
|
|
|
|
|
|
|
|
int m_StreamingAckDelay; |
|
|
|
int m_StreamingAckDelay,m_StreamingOutboundSpeed, m_StreamingInboundSpeed, m_StreamingMaxConcurrentStreams; |
|
|
|
int m_StreamingOutboundSpeed; |
|
|
|
|
|
|
|
int m_StreamingInboundSpeed; |
|
|
|
|
|
|
|
bool m_IsStreamingAnswerPings; |
|
|
|
bool m_IsStreamingAnswerPings; |
|
|
|
std::shared_ptr<i2p::stream::StreamingDestination> m_StreamingDestination; // default
|
|
|
|
std::shared_ptr<i2p::stream::StreamingDestination> m_StreamingDestination; // default
|
|
|
|
std::map<uint16_t, std::shared_ptr<i2p::stream::StreamingDestination> > m_StreamingDestinationsByPorts; |
|
|
|
std::map<uint16_t, std::shared_ptr<i2p::stream::StreamingDestination> > m_StreamingDestinationsByPorts; |
|
|
|