fetch_file.c File Reference

#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)

Define Documentation

#define MAXSTRLEN   256
 

#define SA   struct sockaddr
 


Function Documentation

int get_file_www char *  server,
char *  fname,
char **  source
 

Download the file from the specified url. Invoked only if the source is a url Input : server, port, file name Output : The downloaded file

int parse_url const char *  url,
char *  server,
char *  fname
 

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


Generated on Wed Jul 26 13:26:56 2006 for XSB by  doxygen 1.4.5