| 803 | } |
| 804 | |
| 805 | void I2CPSession::SendMessageStatusMessage (uint32_t nonce, I2CPMessageStatus status) |
| 806 | { |
| 807 | if (!nonce) return; // don't send status with zero nonce |
| 808 | uint8_t buf[15]; |
| 809 | htobe16buf (buf, m_SessionID); |
| 810 | htobe32buf (buf + 2, m_MessageID++); |
| 811 | buf[6] = (uint8_t)status; |
| 812 | memset (buf + 7, 0, 4); // size |
| 813 | htobe32buf (buf + 11, nonce); |
| 814 | SendI2CPMessage (I2CP_MESSAGE_STATUS_MESSAGE, buf, 15); |
| 815 | } |
| 816 | |
| 817 | void I2CPSession::AddRoutingSession (const i2p::data::IdentHash& signingKey, std::shared_ptr<i2p::garlic::GarlicRoutingSession> remoteSession) |
| 818 | { |
no test coverage detected