The R Project SVN R

Rev

Rev 41811 | Rev 49434 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41811 Rev 48990
Line 24... Line 24...
24
 
24
 
25
typedef void   (*R_SockReadRoutine)(int *sockp, char **buf, int *maxlen);
25
typedef void   (*R_SockReadRoutine)(int *sockp, char **buf, int *maxlen);
26
typedef void   (*R_SockWriteRoutine)(int *sockp, char **buf, int *start, int *end, int *len);
26
typedef void   (*R_SockWriteRoutine)(int *sockp, char **buf, int *start, int *end, int *len);
27
typedef int    (*R_SockSelectRoutine)(int nsock, int *insockfd, int *ready, int *write, double timeout);
27
typedef int    (*R_SockSelectRoutine)(int nsock, int *insockfd, int *ready, int *write, double timeout);
28
 
28
 
-
 
29
typedef int    (*R_HTTPDCreateRoutine)(const char *ip, int port);
29
 
30
 
30
typedef struct {
31
typedef struct {
31
    R_DownloadRoutine download;
32
    R_DownloadRoutine download;
32
    R_NewUrlRoutine   newurl;
33
    R_NewUrlRoutine   newurl;
33
    R_NewSockRoutine  newsock;
34
    R_NewSockRoutine  newsock;
Line 47... Line 48...
47
 
48
 
48
    R_SockReadRoutine     sockread;
49
    R_SockReadRoutine     sockread;
49
    R_SockWriteRoutine    sockwrite;
50
    R_SockWriteRoutine    sockwrite;
50
    R_SockSelectRoutine   sockselect;
51
    R_SockSelectRoutine   sockselect;
51
 
52
 
-
 
53
    R_HTTPDCreateRoutine  HTTPDCreate;
52
} R_InternetRoutines;
54
} R_InternetRoutines;
53
 
55
 
54
R_InternetRoutines *R_setInternetRoutines(R_InternetRoutines *routines);
56
R_InternetRoutines *R_setInternetRoutines(R_InternetRoutines *routines);
55
 
57
 
56
#endif /* ifndef R_INTERNET_MODULE_H */
58
#endif /* ifndef R_INTERNET_MODULE_H */