Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
RpcServer.hpp File Reference
#include <memory>
#include <string>
#include <exception>
#include <queue>
#include <functional>
#include <chrono>
#include <thread>
#include <grpc/grpc.h>
#include <grpc++/grpc++.h>
#include "inexor/io/Logging.hpp"

Go to the source code of this file.

Classes

struct  inexor::rpc::callback_event
 
class  inexor::rpc::RpcServer< MSG_TYPE, ASYNC_SERVICE_TYPE >
 
class  inexor::rpc::RpcServer< MSG_TYPE, ASYNC_SERVICE_TYPE >::clienthandler
 

Namespaces

 inexor
 Show stacktrace on unix, do not include directly.
 
 inexor::rpc
 

Macros

#define MAX_RPC_EVENT_CHECKS_PER_TICK   100
 
#define MAX_RPC_CLIENTS   128
 

Typedefs

typedef int64_t int64
 This file contains the Remote Procedure Call Server which synchronizes our shared variables with the Scripting Env. More...
 

Enumerations

enum  inexor::rpc::cpp_type_t { inexor::rpc::t_cstring = 0, inexor::rpc::t_float, inexor::rpc::t_int }
 Known C++ SharedVar types. More...
 
enum  inexor::rpc::EVENT_TYPE {
  inexor::rpc::E_WRITE, inexor::rpc::E_READ, inexor::rpc::E_CONNECT, inexor::rpc::E_DISCONNECT,
  inexor::rpc::E_NUM
}
 The events we request GRPC to do. More...
 

Functions

void inexor::rpc::set_on_change_functions ()
 
void inexor::rpc::send_all_vars ()
 
template<typename MSG_TYPE >
bool inexor::rpc::handle_index (int index, const MSG_TYPE &tree_event)
 
const voidinexor::rpc::encode_signal (const int event_type, int clientid)
 

Macro Definition Documentation

#define MAX_RPC_CLIENTS   128
#define MAX_RPC_EVENT_CHECKS_PER_TICK   100

Typedef Documentation

typedef int64_t int64

This file contains the Remote Procedure Call Server which synchronizes our shared variables with the Scripting Env.

Note: This is a header only template library ("header-only" as a consequence of "template").