MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / SendMessageStatusMessage

Method SendMessageStatusMessage

libi2pd_client/I2CP.cpp:805–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

SendMsgToMethod · 0.80
SendMsgMethod · 0.80

Calls 2

htobe16bufFunction · 0.85
htobe32bufFunction · 0.85

Tested by

no test coverage detected