Debian Codegraph @

netcon/inetfile/lnxinetfile.cpp

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include <stdlib.h>
20 #include <stdio.h>
21 #include <unistd.h>
22 #include "inetgetfile.h"
23 #include "CFtp.h"
24 #include "Chttpget.h"
25
26 InetGetFile::InetGetFile(char *URL, char *localfile) {}
27
28 InetGetFile::~InetGetFile() {}
29
30 BOOL InetGetFile::IsFileReceived() { return false; }
31 BOOL InetGetFile::IsFileError() { return true; }
32
33 BOOL InetGetFile::IsConnecting() { return true; }
34
35 BOOL InetGetFile::IsReceiving() { return false; }
36
37 int InetGetFile::GetErrorCode() { return 0; }
38
39 int InetGetFile::GetBytesIn() { return 0; }
40
41 int InetGetFile::GetTotalBytes() { return 0; }
42
43 void InetGetFile::AbortGet() {}
44
45 ////////////////////////////////////////////////////////////////////
46
47 CFtpGet::CFtpGet(char *URL, char *localfile, char *Username, char *Password) {}
48 CFtpGet::~CFtpGet() {}
49 int CFtpGet::GetStatus() { return 0; }
50 uint32_t CFtpGet::GetBytesIn() { return 0; }
51 uint32_t CFtpGet::GetTotalBytes() { return 0; }
52 void CFtpGet::AbortGet() {}
53 void CFtpGet::WorkerThread() {}
54 int CFtpGet::ConnectControlSocket() { return 0; }
55 int CFtpGet::LoginHost() { return 0; }
56 uint32_t CFtpGet::SendFTPCommand(char *command) { return 0; }
57 uint32_t CFtpGet::ReadFTPServerReply() { return 0; }
58 uint32_t CFtpGet::GetFile() { return 0; }
59 uint32_t CFtpGet::IssuePort() { return 0; }
60 uint32_t CFtpGet::ReadDataChannel() { return 0; }
61 void CFtpGet::FlushControlChannel() {}
62 /////////////////////////////////////////////////////////////////////
63 ChttpGet::ChttpGet(char *URL, char *localfile) {}
64 ChttpGet::~ChttpGet() {}
65 int ChttpGet::GetStatus() { return 0; }
66 uint32_t ChttpGet::GetBytesIn() { return 0; }
67 uint32_t GetTotalBytes() { return 0; }
68 void AbortGet() {}
69 void WorkerThread() {}
70 int ConnectSocket() { return 0; }
71 char *GetHTTPLine() { return "ERR"; }
72 uint32_t ReadDataChannel() { return 0; }