#include "xsb_config.h"
#include "socketcall.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
Defines | |
#define | SA struct sockaddr |
#define | MAXSTRLEN 256 |
Functions | |
int | parse_url (const char *url, char *server, char *fname) |
int | get_file_www (char *server, char *fname, char **buf) |
|
|
|
|
|
Download the file from the specified url. Invoked only if the source is a url Input : server, port, file name Output : The downloaded file |
|
Function invoked if the input is a url. Parse the url to extract the protocol, server, file path, port Input : url Output : server, port, file path |