mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-28 03:41:07 -04:00
Tabs are evil
This commit is contained in:
36
mcrcon.c
36
mcrcon.c
@ -74,34 +74,34 @@ typedef struct _rc_packet {
|
|||||||
// ===================================
|
// ===================================
|
||||||
|
|
||||||
// endianness related functions
|
// endianness related functions
|
||||||
bool is_bigendian(void);
|
bool is_bigendian(void);
|
||||||
int32_t reverse_int32(int32_t n);
|
int32_t reverse_int32(int32_t n);
|
||||||
|
|
||||||
// Network related functions
|
// Network related functions
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
void net_init_WSA(void);
|
void net_init_WSA(void);
|
||||||
#endif
|
#endif
|
||||||
void net_close(int sd);
|
void net_close(int sd);
|
||||||
int net_connect(const char *host, const char *port);
|
int net_connect(const char *host, const char *port);
|
||||||
int net_send(int sd, const uint8_t *buffer, size_t size);
|
int net_send(int sd, const uint8_t *buffer, size_t size);
|
||||||
int net_send_packet(int sd, rc_packet *packet);
|
int net_send_packet(int sd, rc_packet *packet);
|
||||||
rc_packet* net_recv_packet(int sd);
|
rc_packet* net_recv_packet(int sd);
|
||||||
int net_clean_incoming(int sd, int size);
|
int net_clean_incoming(int sd, int size);
|
||||||
|
|
||||||
// Misc stuff
|
// Misc stuff
|
||||||
void usage(void);
|
void usage(void);
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
void print_color(int color);
|
void print_color(int color);
|
||||||
#endif
|
#endif
|
||||||
int get_line(char *buffer, int len);
|
int get_line(char *buffer, int len);
|
||||||
int run_terminal_mode(int sock);
|
int run_terminal_mode(int sock);
|
||||||
int run_commands(int argc, char *argv[]);
|
int run_commands(int argc, char *argv[]);
|
||||||
|
|
||||||
// Rcon protocol related functions
|
// Rcon protocol related functions
|
||||||
rc_packet* packet_build(int id, int cmd, char *s1);
|
rc_packet* packet_build(int id, int cmd, char *s1);
|
||||||
void packet_print(rc_packet *packet);
|
void packet_print(rc_packet *packet);
|
||||||
int rcon_auth(int sock, char *passwd);
|
int rcon_auth(int sock, char *passwd);
|
||||||
int rcon_command(int sock, char *command);
|
int rcon_command(int sock, char *command);
|
||||||
|
|
||||||
|
|
||||||
// =============================================
|
// =============================================
|
||||||
|
|||||||
Reference in New Issue
Block a user