wiiload_plugin/src/utils/net.h

34 lines
598 B
C
Raw Normal View History

2021-09-24 21:04:06 +02:00
#pragma once
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
#include <stdint.h>
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2022-02-04 15:47:35 +01:00
#include <arpa/inet.h>
#include <errno.h>
#include <netinet/in.h>
2021-04-17 14:22:19 +02:00
#include <stdbool.h>
2022-02-04 15:47:35 +01:00
#include <stdint.h>
#include <stdio.h>
#include <sys/socket.h>
2021-04-17 14:22:19 +02:00
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
2019-11-24 14:35:38 +01:00
int32_t recvwait(int32_t sock, void *buffer, int32_t len);
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
uint8_t recvbyte(int32_t sock);
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
uint32_t recvword(int32_t sock);
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
int32_t checkbyte(int32_t sock);
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
int32_t sendwait(int32_t sock, const void *buffer, int32_t len);
2020-06-03 19:45:51 +02:00
2019-11-24 14:35:38 +01:00
int32_t sendbyte(int32_t sock, unsigned char byte);
#ifdef __cplusplus
}
2021-09-24 21:04:06 +02:00
#endif