Verified Commit 2db84820 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

First RPC implementation

parent 683216da
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -89,6 +89,18 @@ message(
  STATUS "[${PROJECT_NAME}] Transport library: ${SCORD_TRANSPORT_LIBRARY}"
)

### server transport protocol
set(SCORD_TRANSPORT_PROTOCOL
    "tcp"
    CACHE
      STRING
      "Change the default transport protocol for the ${PROJECT_NAME} server (default: tcp)"
)
message(
  STATUS
    "[${PROJECT_NAME}] server default transport protocol: ${SCORD_TRANSPORT_PROTOCOL}"
)

### server bind address
set(SCORD_BIND_ADDRESS
    "127.0.0.1"
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@ global_settings: [
  # path to pidfile
  pidfile: "@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/@CMAKE_PROJECT_NAME@.pid",

  # transport protocol used for communication
  transport_protocol: "@SCORD_TRANSPORT_PROTOCOL@",

  # address to bind to
  bind_address: "@SCORD_BIND_ADDRESS@",

+2 −9
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
add_subdirectory(config)
add_subdirectory(utils)
add_subdirectory(logger)
add_subdirectory(network)

add_executable(scord server.cpp main.cpp)

@@ -33,13 +34,5 @@ target_include_directories(
)

target_link_libraries(
  scord
  PRIVATE config
          logger
          transport_library
          Mercury::Mercury
          Argobots::Argobots
          Margo::Margo
          fmt::fmt
          Boost::program_options
  scord PRIVATE config logger network_engine fmt::fmt Boost::program_options
)
+4 −0
Original line number Diff line number Diff line
@@ -72,6 +72,10 @@ const file_schema valid_options = declare_file({
                                keywords::control_socket, opt_type::mandatory,
                                converter<fs::path>(parsers::parse_path)),

                        declare_option<std::string>(
                                keywords::transport_protocol,
                                opt_type::mandatory),

                        declare_option<std::string>(keywords::bind_address,
                                                    opt_type::mandatory),

+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ const char* global_socket =
        "@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/global.socket.2";
const char* control_socket =
        "@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/control.socket.2";
const char* transport_protocol = "ofi+tcp";
const char* bind_address = "127.0.0.1";
const in_port_t remote_port = 42000;
const char* pidfile =
Loading