diff options
Diffstat (limited to 'client/libacron/apps/helloworld/net.h')
-rw-r--r-- | client/libacron/apps/helloworld/net.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/client/libacron/apps/helloworld/net.h b/client/libacron/apps/helloworld/net.h deleted file mode 100644 index 1a49709..0000000 --- a/client/libacron/apps/helloworld/net.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Created by yuuta on 7/23/22. - */ - -#ifndef ACRONC_NET_H -#define ACRONC_NET_H - -#include <stdint.h> -#include <stddef.h> - -#ifdef WIN32 -#include <winsock2.h> - -#else - -#define SOCKET int - -#endif - -#define NET_CLOSED -2 -#define NET_TIMEOUT -1 - -int net_connect(const char *host, - uint16_t port, - SOCKET *sock); - -int net_read(const SOCKET *sock, - void *buffer, - size_t length, - size_t *read, - unsigned int timeout); - -int net_send(const SOCKET *sock, - const void *buffer, - size_t len); - -void net_close(const SOCKET *sock); - -int net_init(void); - -void net_free(void); - -char *net_strerror(int errnum); - -#endif /* ACRONC_NET_H */ |