MCPcopy Create free account
hub / github.com/aria2/aria2 / createConnectReply

Function createConnectReply

test/UDPTrackerClientTest.cc:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73namespace {
74ssize_t createConnectReply(unsigned char* data, size_t len,
75 uint64_t connectionId, uint32_t transactionId)
76{
77 bittorrent::setIntParam(data, UDPT_ACT_CONNECT);
78 bittorrent::setIntParam(data + 4, transactionId);
79 bittorrent::setLLIntParam(data + 8, connectionId);
80 return 16;
81}
82} // namespace
83
84namespace {

Callers 3

testRequestFailureMethod · 0.85
testTimeoutMethod · 0.85

Calls 2

setIntParamFunction · 0.85
setLLIntParamFunction · 0.85

Tested by

no test coverage detected