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

Method SendKeepAlive

libi2pd/SSU2Session.cpp:269–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 }
268
269 void SSU2Session::SendKeepAlive ()
270 {
271 if (IsEstablished ())
272 {
273 uint8_t payload[20];
274 size_t payloadSize = CreatePaddingBlock (payload, 20, 8);
275 SendData (payload, payloadSize, SSU2_FLAG_IMMEDIATE_ACK_REQUESTED);
276 }
277 }
278
279 void SSU2Session::Terminate ()
280 {

Callers 1

UpdateIntroducersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected