Files
pumpitupdev_pumptools/src/main/pumpnet/prinet-proxy/options.h
T
icex2 986571a513 pumpnet: Add prinet-proxy application
Sits between the game (client) and pumpnet (server) translating
the game's native protocol to more managable http requests.

Encryption and decryption is also taken care off to remove that
burden from the server side. This makes http requests as generic as
"game version X is sending some data. here, go and figure out what
to do" on the server side.
2021-01-17 01:34:23 +01:00

33 lines
712 B
C

#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "asset/game-version.h"
#include "util/log.h"
struct pumpnet_prinet_proxy_options {
struct proxy {
struct source {
const char* addr;
uint16_t port;
} source;
struct pumpnet {
const char* server;
enum asset_game_version game;
uint64_t machine_id;
bool verbose_log_output;
const char* cert_dir_path;
} pumpnet;
} proxy;
struct log {
const char* file;
enum util_log_level level;
} log;
};
bool pumpnet_prinet_proxy_options_init(int argc, char** argv, struct pumpnet_prinet_proxy_options* options);