2017-03-30 17:53:36 +02:00
|
|
|
#ifndef _CONTROLLERPATCHERNET_H_
|
|
|
|
#define _CONTROLLERPATCHERNET_H_
|
|
|
|
|
2017-05-08 12:16:03 +02:00
|
|
|
#include "wiiu/types.h"
|
2017-05-07 14:44:09 +02:00
|
|
|
|
2017-03-30 17:53:36 +02:00
|
|
|
class ControllerPatcherNet{
|
|
|
|
friend class TCPServer;
|
|
|
|
friend class UDPServer;
|
|
|
|
private:
|
2017-04-10 11:00:55 +02:00
|
|
|
static s32 recvwait(s32 sock, void *buffer, s32 len);
|
2017-04-10 15:39:58 +02:00
|
|
|
static u8 recvbyte(s32 sock);
|
2017-04-10 11:00:55 +02:00
|
|
|
static s32 checkbyte(s32 sock);
|
|
|
|
static s32 sendwait(s32 sock, const void *buffer, s32 len);
|
|
|
|
static s32 sendbyte(s32 sock, unsigned char byte);
|
2017-03-30 17:53:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|