The R Project SVN R

Rev

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

Rev 48990 Rev 49434
Line 25... Line 25...
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
typedef int    (*R_HTTPDCreateRoutine)(const char *ip, int port);
-
 
30
typedef void   (*R_HTTPDStopRoutine)();
30
 
31
 
31
typedef struct {
32
typedef struct {
32
    R_DownloadRoutine download;
33
    R_DownloadRoutine download;
33
    R_NewUrlRoutine   newurl;
34
    R_NewUrlRoutine   newurl;
34
    R_NewSockRoutine  newsock;
35
    R_NewSockRoutine  newsock;
Line 49... Line 50...
49
    R_SockReadRoutine     sockread;
50
    R_SockReadRoutine     sockread;
50
    R_SockWriteRoutine    sockwrite;
51
    R_SockWriteRoutine    sockwrite;
51
    R_SockSelectRoutine   sockselect;
52
    R_SockSelectRoutine   sockselect;
52
 
53
 
53
    R_HTTPDCreateRoutine  HTTPDCreate;
54
    R_HTTPDCreateRoutine  HTTPDCreate;
-
 
55
    R_HTTPDStopRoutine    HTTPDStop;
54
} R_InternetRoutines;
56
} R_InternetRoutines;
55
 
57
 
56
R_InternetRoutines *R_setInternetRoutines(R_InternetRoutines *routines);
58
R_InternetRoutines *R_setInternetRoutines(R_InternetRoutines *routines);
57
 
59
 
58
#endif /* ifndef R_INTERNET_MODULE_H */
60
#endif /* ifndef R_INTERNET_MODULE_H */