Example code to test nettobac package in a server scenario. More...
Go to the source code of this file.
Macros | |
#define | FOLD |
The folder to store the data. More... | |
#define | ERR_MSG |
The macro to report an error. More... | |
Functions | |
SUB | saveData (BYREF_AS_STRING Dat, BYREF_AS_STRING Nam) |
Store data in a file. More... | |
FUNCTION_AS_INTEGER | doClientActions () |
Operate as a client, download files. More... | |
int | main () |
Example code to test nettobac package in a server scenario.
Copyright (C) GPLv3, see ReadMe.md for details.
Definition in file example_client.bas.
#define FOLD |
#define ERR_MSG |
The macro to report an error.
Definition at line 16 of file example_client.bas.
SUB saveData | ( | BYREF_AS_STRING | Dat, |
BYREF_AS_STRING | Nam | ||
) |
Store data in a file.
Dat | the data to store |
Nam | the path/name of the file to create (or override) |
This function opens the file named Nam
in the current folder for output (overriding an existend file, if any) and writes the STRING Dat
in to it. The SUB gets called in order to store the downloaded data on disk.
Definition at line 34 of file example_client.bas.
FUNCTION_AS_INTEGER doClientActions | ( | ) |
Operate as a client, download files.
END
the programFIXME
Definition at line 53 of file example_client.bas.
int main | ( | ) |