RInside Version 0.2.16
|
#include "common/binarystream.h"
#include "common/constants.h"
#include "datatypes/foo.h"
#include "datatypes/bar.h"
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <map>
#include <atomic>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <chrono>
#include <thread>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <poll.h>
#include <signal.h>
#include <RcppCommon.h>
#include "datatypes/foo_rcpp_wrapper_declarations.h"
#include "datatypes/bar_rcpp_wrapper_declarations.h"
#include <Rcpp.h>
#include <RInside.h>
#include "datatypes/foo_rcpp_wrapper_definitions.h"
#include "datatypes/bar_rcpp_wrapper_definitions.h"
#include "server/rinsideserver.h"
Go to the source code of this file.
Macros | |
#define | LOG(...) {fprintf(stderr, "%d: ", getpid());fprintf(stderr, __VA_ARGS__);fprintf(stderr, "\n");} |
Functions | |
int | cmpTimespec (const struct timespec &t1, const struct timespec &t2) |
void | signal_handler (int signum) |
int | main () |
Variables | |
const int | TIMEOUT_SECONDS = 600 |
#define LOG | ( | ... | ) | {fprintf(stderr, "%d: ", getpid());fprintf(stderr, __VA_ARGS__);fprintf(stderr, "\n");} |
Definition at line 42 of file example_server.cpp.
Referenced by main(), CppFunctionForRInsideServer::operator()(), signal_handler(), and RInsideCallbacks::Suicide().
int cmpTimespec | ( | const struct timespec & | t1, |
const struct timespec & | t2 | ||
) |
Definition at line 78 of file example_server.cpp.
Referenced by main().
int main | ( | void | ) |
Definition at line 97 of file example_server.cpp.
References cmpTimespec(), RInsideCallbacks::getConsoleOutput(), LOG, RInsideServer::registerDefaultTypes(), RInsideCallbacks::resetConsoleOutput(), ris_socket_address, RInsideServer::run(), signal_handler(), and TIMEOUT_SECONDS.
void signal_handler | ( | int | signum | ) |
const int TIMEOUT_SECONDS = 600 |
Definition at line 52 of file example_server.cpp.
Referenced by main().