Displaying 2 results from an estimated 2 matches for "have_bsd_networking".
2008 Apr 25
1
package compilation: including external libraries in windows compilation
...know how to instruct the preprocessor to include
the linux .h files
when in linux and the windows one in windows.
I thought I found a solution online by using:
#if defined(Win32)
#include <winsock2.h>
#include <io.h>
#else
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_BSD_NETWORKING
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#endif
But I still get an error when these are compiled on the R-distribution.
I do not understand where I am supposed to set the Win32 flag so
that it will be ignored in LINUX...
2001 Mar 20
2
Are sockets supported on Irix?
When I try to open a server socket on the system setup listed below, I get
the following error:
> a <- make.socket(port=8091,server=TRUE)
Error in make.socket(port = 8091, server = TRUE) :
sockets are not available on this system
I just wanted to make sure that sockets were generally available for this
platform (or, perhaps, I need to upgrade to 1.2.2 on this system), before I
got