diff options
Diffstat (limited to 'net/net.h')
-rw-r--r-- | net/net.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/net.h b/net/net.h new file mode 100644 index 0000000..0bf5b62 --- /dev/null +++ b/net/net.h @@ -0,0 +1,12 @@ +/* + * Adopted from mcrcon, Copyright (c) 2012-2020, Tiiffi <tiiffi at gmail>. + * https://github.com/Tiiffi/mcrcon/tree/b02201d689b3032bc681b28f175fd3d83d167293 + */ + +#ifndef _NET_H +#define _NET_H + +int net_connect(const char *host, const char *port, int *out); +void net_close(int sd); + +#endif // _NET_H |