send SetDateMessage

This commit is contained in:
orignal 2016-05-27 16:22:42 -04:00
parent 8622385e88
commit 1a9422c3f9
2 changed files with 64 additions and 2 deletions

9
I2CP.h
View file

@ -19,6 +19,8 @@ namespace client
const size_t I2CP_HEADER_SIZE = I2CP_HEADER_TYPE_OFFSET + 1;
const uint8_t I2CP_GET_DATE_MESSAGE = 32;
const uint8_t I2CP_SET_DATE_MESSAGE = 33;
const uint8_t I2CP_CREATE_SESSION_MESSAGE = 1;
class I2CPSession;
class I2CPDestination: public LeaseSetDestination
@ -52,6 +54,7 @@ namespace client
// message handlers
void GetDateMessageHandler (const uint8_t * buf, size_t len);
void CreateSessionMessageHandler (const uint8_t * buf, size_t len);
private:
@ -61,6 +64,12 @@ namespace client
void HandleNextMessage (const uint8_t * buf);
void Terminate ();
void SendI2CPMessage (uint8_t type, const uint8_t * payload, size_t len);
void HandleI2CPMessageSent (const boost::system::error_code& ecode, std::size_t bytes_transferred, const uint8_t * buf);
std::string ExtractString (const uint8_t * buf, size_t len);
size_t PutString (uint8_t * buf, size_t len, const std::string& str);
private:
I2CPServer& m_Owner;