MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / IsFileReceived

Method IsFileReceived

netcon/inetfile/inetgetfile.cpp:236–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236BOOL InetGetFile::IsFileReceived() {
237 int state = 0;
238 if (m_bUseHTTP) {
239 state = http->GetStatus();
240 } else if (ftp) {
241 state = ftp->GetStatus();
242 }
243 if (state == FTP_STATE_FILE_RECEIVED) {
244 return true;
245 } else {
246 return false;
247 }
248}
249
250BOOL InetGetFile::IsFileError() {
251 int state = FTP_STATE_INTERNAL_ERROR;

Callers 1

MTVersionCheckFunction · 0.45

Calls 1

GetStatusMethod · 0.45

Tested by

no test coverage detected