mirror of
https://github.com/Maschell/controller_patcher.git
synced 2024-11-22 12:09:16 +01:00
74d422a87e
Updated the TCP Handshake to also negotiate a protocol version.
16 lines
442 B
C++
16 lines
442 B
C++
#ifndef _CONTROLLERPATCHERNET_H_
|
|
#define _CONTROLLERPATCHERNET_H_
|
|
|
|
class ControllerPatcherNet{
|
|
friend class TCPServer;
|
|
friend class UDPServer;
|
|
private:
|
|
static s32 recvwait(s32 sock, void *buffer, s32 len);
|
|
static u8 recvbyte(s32 sock);
|
|
static s32 checkbyte(s32 sock);
|
|
static s32 sendwait(s32 sock, const void *buffer, s32 len);
|
|
static s32 sendbyte(s32 sock, unsigned char byte);
|
|
};
|
|
|
|
#endif
|