The R Project SVN R

Rev

Rev 80131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80131 Rev 85689
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
 
3
 
4
 *  Copyright (C) 1998-2020   The R Core Team
4
 *  Copyright (C) 1998-2023   The R Core Team
5
 *
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
9
 *  (at your option) any later version.
Line 40... Line 40...
40
ssize_t Sock_write(int fd, const void *buf, size_t nbytes, Sock_error_t perr);
40
ssize_t Sock_write(int fd, const void *buf, size_t nbytes, Sock_error_t perr);
41
 
41
 
42
#ifndef Win32
42
#ifndef Win32
43
# define SOCKET int
43
# define SOCKET int
44
#else
44
#else
-
 
45
  /* keep FD_SETSIZE in step with connections.c, but this is the default */
45
# define FD_SETSIZE 1024
46
# define FD_SETSIZE 1024
46
# include<winsock2.h>
47
# include<winsock2.h>
47
#endif
48
#endif
48
 
49
 
49
int R_close_socket(SOCKET s);
50
int R_close_socket(SOCKET s);