MCPcopy Create free account
hub / github.com/amule-project/amule / SendStartupLoadReq

Method SendStartupLoadReq

src/DownloadClient.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163void CUpDownClient::SendStartupLoadReq()
164{
165 // 0.42e
166 if (m_socket==NULL || m_reqfile==NULL) {
167 return;
168 }
169 SetDownloadState(DS_ONQUEUE);
170 CMemFile dataStartupLoadReq(16);
171 dataStartupLoadReq.WriteHash(m_reqfile->GetFileHash());
172 CPacket* packet = new CPacket(dataStartupLoadReq, OP_EDONKEYPROT, OP_STARTUPLOADREQ);
173 theStats::AddUpOverheadFileRequest(packet->GetPacketSize());
174 AddDebugLogLineN(logLocalClient, "Local Client: OP_STARTUPLOADREQ to " + GetFullIP());
175 SendPacket(packet, true, true);
176}
177
178
179bool CUpDownClient::IsSourceRequestAllowed()

Callers

nothing calls this directly

Calls 2

GetPacketSizeMethod · 0.80
WriteHashMethod · 0.45

Tested by

no test coverage detected