Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
Loading...
Searching...
No Matches
ftp.h File Reference
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <errno.h>
#include "utils.h"
Include dependency graph for ftp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CURLcode FTPRequest (const char *url, Utils_ReqData_TypeDef *stream)
 File Transfer Protocol request. More...
 

Function Documentation

◆ FTPRequest()

CURLcode FTPRequest ( const char *  url,
Utils_ReqData_TypeDef stream 
)

File Transfer Protocol request.

FTP request for data.

This FTP request is required to communicate with the Buerau of Meterology FTP server. A URL is provided (denoting the base ftp server name and the path to the file of interest). A stream is also give to hold the raw data provided from this FTP request.

Parameters
urlURL to file of interest on FTP server.
streamStream to hold data from response (see utils.h).
Returns
Curl status code representing FTP errors.