Adding missing functions. SAM now let you choose signature types
This commit is contained in:
11
i2psam.cpp
11
i2psam.cpp
@ -604,6 +604,17 @@ const std::string& StreamSession::getSAMVersion() const
|
||||
return socket_.getVersion();
|
||||
}
|
||||
|
||||
|
||||
const std::string& StreamSession::getSAMMinVer() const
|
||||
{
|
||||
return socket_.minVer_;
|
||||
}
|
||||
|
||||
const std::string& StreamSession::getSAMMaxVer() const
|
||||
{
|
||||
return socket_.maxVer_;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
5
i2psam.h
5
i2psam.h
@ -224,13 +224,14 @@ public:
|
||||
|
||||
const sockaddr_in& getAddress() const;
|
||||
|
||||
const std::string minVer_ = "3.0";
|
||||
const std::string maxVer_ = "3.1";
|
||||
|
||||
private:
|
||||
SOCKET socket_;
|
||||
sockaddr_in servAddr_;
|
||||
std::string SAMHost_;
|
||||
uint16_t SAMPort_;
|
||||
const std::string minVer_ = "3.0";
|
||||
const std::string maxVer_ = "3.1";
|
||||
std::string version_;
|
||||
|
||||
#ifdef WIN32
|
||||
|
Reference in New Issue
Block a user