libutils/include/network/net.h
Maschell f02d7da869 Make library compatible with WUT
Remove some features (kernel, function patcher) to be a userland only lib.
2018-06-17 15:19:51 +02:00

22 lines
362 B
C

#ifndef _UTILS_NET_H_
#define _UTILS_NET_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <wut_types.h>
s32 recvwait(s32 sock, void *buffer, s32 len);
u8 recvbyte(s32 sock);
u32 recvword(s32 sock);
s32 checkbyte(s32 sock);
s32 sendwait(s32 sock, const void *buffer, s32 len);
s32 sendbyte(s32 sock, unsigned char byte);
#ifdef __cplusplus
}
#endif
#endif