2018-03-07 18:42:04 +01:00
|
|
|
#ifndef _UTILS_NET_H_
|
|
|
|
#define _UTILS_NET_H_
|
|
|
|
|
2018-03-04 16:10:02 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-06-17 15:19:51 +02:00
|
|
|
#include <wut_types.h>
|
|
|
|
|
2018-06-20 14:44:30 +02:00
|
|
|
int32_t recvwait(int32_t sock, void *buffer, int32_t len);
|
|
|
|
uint8_t recvbyte(int32_t sock);
|
|
|
|
uint32_t recvword(int32_t sock);
|
|
|
|
int32_t checkbyte(int32_t sock);
|
|
|
|
int32_t sendwait(int32_t sock, const void *buffer, int32_t len);
|
|
|
|
int32_t sendbyte(int32_t sock, unsigned char byte);
|
2018-03-04 16:10:02 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|