The R Project SVN R

Rev

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

Rev 19500 Rev 26380
Line 22... Line 22...
22
typedef void   (*R_SockConnectRoutine)(int *port, char **host);
22
typedef void   (*R_SockConnectRoutine)(int *port, char **host);
23
typedef void   (*R_SockCloseRoutine)(int *sockp);
23
typedef void   (*R_SockCloseRoutine)(int *sockp);
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
 
28
 
28
 
29
 
29
typedef struct {
30
typedef struct {
30
    R_DownloadRoutine download;
31
    R_DownloadRoutine download;
31
    R_NewUrlRoutine   newurl;
32
    R_NewUrlRoutine   newurl;
Line 44... Line 45...
44
    R_SockConnectRoutine  sockconnect;
45
    R_SockConnectRoutine  sockconnect;
45
    R_SockCloseRoutine    sockclose;
46
    R_SockCloseRoutine    sockclose;
46
 
47
 
47
    R_SockReadRoutine     sockread;
48
    R_SockReadRoutine     sockread;
48
    R_SockWriteRoutine    sockwrite;
49
    R_SockWriteRoutine    sockwrite;
-
 
50
    R_SockSelectRoutine   sockselect;
49
 
51
 
50
} R_InternetRoutines;
52
} R_InternetRoutines;
51
 
53
 
52
R_InternetRoutines *R_setInternetRoutines(R_InternetRoutines *routines);
54
R_InternetRoutines *R_setInternetRoutines(R_InternetRoutines *routines);
53
 
55