mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
send SetDateMessage
This commit is contained in:
parent
8622385e88
commit
1a9422c3f9
2 changed files with 64 additions and 2 deletions
9
I2CP.h
9
I2CP.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue