/*
* @fileName frpc_config.h
* @author gaoyang
* @date 2025-05-20 16:58
* @description 
*/
#ifndef _FRPC_CONFIG_H
#define _FRPC_CONFIG_H

#define DEFINE_SERVER_ADDR  "112.17.252.166"
#define DEFINE_SERVER_PORT  (9000)
#define DEFINE_LOG_FILE     "/tmp/frpc.log"
#define DEFINE_LOG_LEVEL    "info"
#define DEFINE_TOKEN        "lnxall123!@#"
#define DEFINE_ADMIN_ADDR   "127.0.0.1"
#define DEFINE_ADMIN_USER   "lnxall"
#define DEFINE_ADMIN_PWD    "lnxall123!@#"
#define DEFINE_TLS_ENABLE   (1)
#define REMOTE_FRPC_NAME    "remote_frpc"
#define DEFINE_FRPC_TYPE    (0)
#define DEFINE_LOCAL_IP     "127.0.0.1"
#define DEFINE_REMOTE_PORT  (0)
#define DEFINE_USE_COMPRESS (1)


typedef struct frpc_cfg_t
{
    // common
    char server_addr[32];
    int  server_port;
    char token[32];
    char admin_addr[32];
    int  admin_port;
    char admin_user[32];
    char admin_pwd[32];
    char user[32];
    int  tls_enable;
    // private
    int type; // 1:tcp, 2:udp

    char  name[32];
    char  local_ip[32];
    int   local_port;
    int   remote_port;
    int   use_compress;
} frpc_cfg_t;



#endif
