| Line 1... |
Line 1... |
| 1 |
/*
|
1 |
/*
|
| 2 |
* R : A Computer Language for Statistical Data Analysis
|
2 |
* R : A Computer Language for Statistical Data Analysis
|
| 3 |
* Copyright (C) 2004-2015 The R Core Team
|
3 |
* Copyright (C) 2004-2018 The R Core Team
|
| 4 |
*
|
4 |
*
|
| 5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
| 6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
| 7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
| 8 |
* (at your option) any later version.
|
8 |
* (at your option) any later version.
|
| Line 23... |
Line 23... |
| 23 |
|
23 |
|
| 24 |
#include <Rinternals.h>
|
24 |
#include <Rinternals.h>
|
| 25 |
|
25 |
|
| 26 |
|
26 |
|
| 27 |
typedef SEXP (*R_DownloadRoutine)(SEXP args);
|
27 |
typedef SEXP (*R_DownloadRoutine)(SEXP args);
|
| 28 |
typedef Rconnection (*R_NewUrlRoutine)(const char *description, const char * const mode, int method);
|
28 |
typedef Rconnection (*R_NewUrlRoutine)(const char *description, const char * const mode,
|
| - |
|
29 |
SEXP headers, int method);
|
| 29 |
typedef Rconnection (*R_NewSockRoutine)(const char *host, int port, int server, const char *const mode, int timeout);
|
30 |
typedef Rconnection (*R_NewSockRoutine)(const char *host, int port, int server,
|
| - |
|
31 |
const char * const mode, int timeout);
|
| 30 |
|
32 |
|
| 31 |
typedef void * (*R_HTTPOpenRoutine)(const char *url, const char *headers, const int cacheOK);
|
33 |
typedef void * (*R_HTTPOpenRoutine)(const char *url, const char *agent,
|
| - |
|
34 |
const char *headers, const int cacheOK);
|
| 32 |
typedef int (*R_HTTPReadRoutine)(void *ctx, char *dest, int len);
|
35 |
typedef int (*R_HTTPReadRoutine)(void *ctx, char *dest, int len);
|
| 33 |
typedef void (*R_HTTPCloseRoutine)(void *ctx);
|
36 |
typedef void (*R_HTTPCloseRoutine)(void *ctx);
|
| 34 |
|
37 |
|
| 35 |
typedef void * (*R_FTPOpenRoutine)(const char *url);
|
38 |
typedef void * (*R_FTPOpenRoutine)(const char *url);
|
| 36 |
typedef int (*R_FTPReadRoutine)(void *ctx, char *dest, int len);
|
39 |
typedef int (*R_FTPReadRoutine)(void *ctx, char *dest, int len);
|
| 37 |
typedef void (*R_FTPCloseRoutine)(void *ctx);
|
40 |
typedef void (*R_FTPCloseRoutine)(void *ctx);
|
| 38 |
|
41 |
|
| 39 |
typedef void (*R_SockOpenRoutine)(int *port);
|
42 |
typedef void (*R_SockOpenRoutine)(int *port);
|