diff options
Diffstat (limited to 'rcon_host.h')
-rw-r--r-- | rcon_host.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rcon_host.h b/rcon_host.h new file mode 100644 index 0000000..c8578a4 --- /dev/null +++ b/rcon_host.h @@ -0,0 +1,20 @@ +#ifndef _RCON_HOST_H +#define _RCON_HOST_H + +struct rcon_host_connarg { + char *host; + char *port; + char *password; +}; + +int rcon_host_init(); +void rcon_host_free(); +void rcon_host_connarg_free(struct rcon_host_connarg *arg); + +int rcon_host_send(const int id, const char *command); +int rcon_host_recv(int *pkgt_id, char *out); + +void rcon_host_setconnarg(struct rcon_host_connarg *arg); +struct rcon_host_connarg *rcon_host_getconnarg(); + +#endif // _RCON_HOST_H |