Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / include / R_ext / R-ftp-http.h @ 2486

History | View | Annotate | Download (2 kB)

1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 2001-2014 The R Core Team.
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU Lesser General Public License as published by
7
 *  the Free Software Foundation; either version 2.1 of the License, or
8
 *  (at your option) any later version.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU Lesser General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU Lesser General Public License
16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
18
 */
19

    
20
/* Advertized entry points, for that part of libxml included in
21
 * the internet module.
22
 */
23

    
24
#ifndef R_FTP_HTTP_H_
25
#define R_FTP_HTTP_H_
26

    
27
#ifdef __cplusplus
28
extern "C" {
29
#endif
30

    
31
void *R_HTTPOpen(const char *url);
32
int   R_HTTPRead(void *ctx, char *dest, int len);
33
void  R_HTTPClose(void *ctx);
34

    
35
void *R_FTPOpen(const char *url);
36
int   R_FTPRead(void *ctx, char *dest, int len);
37
void  R_FTPClose(void *ctx);
38

    
39
void *        RxmlNanoHTTPOpen(const char *URL, char **contentType, const char *headers, int cacheOK);
40
int        RxmlNanoHTTPRead(void *ctx, void *dest, int len);
41
void        RxmlNanoHTTPClose(void *ctx);
42
int         RxmlNanoHTTPReturnCode(void *ctx);
43
char *         RxmlNanoHTTPStatusMsg(void *ctx);
44
ssize_t RxmlNanoHTTPContentLength(void *ctx);
45
char *        RxmlNanoHTTPContentType(void *ctx);
46
void        RxmlNanoHTTPTimeout(int delay);
47

    
48
void *        RxmlNanoFTPOpen(const char *URL);
49
int        RxmlNanoFTPRead(void *ctx, void *dest, int len);
50
int        RxmlNanoFTPClose(void *ctx);
51
void        RxmlNanoFTPTimeout(int delay);
52
ssize_t RxmlNanoFTPContentLength(void *ctx);
53

    
54
void    RxmlMessage(int level, const char *format, ...);
55

    
56
/* not currently used */
57

    
58
void RxmlNanoFTPCleanup(void);
59
void RxmlNanoHTTPCleanup(void);
60

    
61
#ifdef __cplusplus
62
}
63
#endif
64

    
65
#endif /* R_FTP_HTTP_H_ */