2024-04-20 15:57:49 +00:00
|
|
|
/*
|
|
|
|
* Descent 3
|
|
|
|
* Copyright (C) 2024 Parallax Software
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2024-04-16 03:43:29 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "inetgetfile.h"
|
|
|
|
#include "CFtp.h"
|
|
|
|
#include "Chttpget.h"
|
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
InetGetFile::InetGetFile(char *URL, char *localfile) {}
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
InetGetFile::~InetGetFile() {}
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
BOOL InetGetFile::IsFileReceived() { return false; }
|
|
|
|
BOOL InetGetFile::IsFileError() { return true; }
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
BOOL InetGetFile::IsConnecting() { return true; }
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
BOOL InetGetFile::IsReceiving() { return false; }
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
int InetGetFile::GetErrorCode() { return 0; }
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
int InetGetFile::GetBytesIn() { return 0; }
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
int InetGetFile::GetTotalBytes() { return 0; }
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
void InetGetFile::AbortGet() {}
|
2024-04-16 03:43:29 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
CFtpGet::CFtpGet(char *URL, char *localfile, char *Username, char *Password) {}
|
|
|
|
CFtpGet::~CFtpGet() {}
|
|
|
|
int CFtpGet::GetStatus() { return 0; }
|
2024-05-24 02:51:16 +00:00
|
|
|
uint32_t CFtpGet::GetBytesIn() { return 0; }
|
|
|
|
uint32_t CFtpGet::GetTotalBytes() { return 0; }
|
2024-04-16 18:56:40 +00:00
|
|
|
void CFtpGet::AbortGet() {}
|
|
|
|
void CFtpGet::WorkerThread() {}
|
|
|
|
int CFtpGet::ConnectControlSocket() { return 0; }
|
|
|
|
int CFtpGet::LoginHost() { return 0; }
|
2024-05-24 02:51:16 +00:00
|
|
|
uint32_t CFtpGet::SendFTPCommand(char *command) { return 0; }
|
|
|
|
uint32_t CFtpGet::ReadFTPServerReply() { return 0; }
|
|
|
|
uint32_t CFtpGet::GetFile() { return 0; }
|
|
|
|
uint32_t CFtpGet::IssuePort() { return 0; }
|
|
|
|
uint32_t CFtpGet::ReadDataChannel() { return 0; }
|
2024-04-16 18:56:40 +00:00
|
|
|
void CFtpGet::FlushControlChannel() {}
|
2024-04-16 03:43:29 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
2024-04-16 18:56:40 +00:00
|
|
|
ChttpGet::ChttpGet(char *URL, char *localfile) {}
|
|
|
|
ChttpGet::~ChttpGet() {}
|
|
|
|
int ChttpGet::GetStatus() { return 0; }
|
2024-05-24 02:51:16 +00:00
|
|
|
uint32_t ChttpGet::GetBytesIn() { return 0; }
|
|
|
|
uint32_t GetTotalBytes() { return 0; }
|
2024-04-16 18:56:40 +00:00
|
|
|
void AbortGet() {}
|
|
|
|
void WorkerThread() {}
|
|
|
|
int ConnectSocket() { return 0; }
|
|
|
|
char *GetHTTPLine() { return "ERR"; }
|
2024-05-24 02:51:16 +00:00
|
|
|
uint32_t ReadDataChannel() { return 0; }
|