From ef79bbde537d6b9c745a7d86cb9df1d04c35590d Mon Sep 17 00:00:00 2001 From: PCSX* teams Date: Tue, 16 Nov 2010 14:15:22 +0200 Subject: pcsxr-1.9.92 --- plugins/dfnet/dfnet.h | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 plugins/dfnet/dfnet.h (limited to 'plugins/dfnet/dfnet.h') diff --git a/plugins/dfnet/dfnet.h b/plugins/dfnet/dfnet.h new file mode 100644 index 0000000..62f3842 --- /dev/null +++ b/plugins/dfnet/dfnet.h @@ -0,0 +1,80 @@ +// +// DF Netplay Plugin +// +// Based on netSock 0.2 by linuzappz. +// The Plugin is free source code. +// + +#ifndef __DFNET_H__ +#define __DFNET_H__ + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +#include +#include +#define _(x) gettext(x) +#define N_(x) (x) +#else +#define _(x) (x) +#define N_(x) (x) +#endif + +typedef void* HWND; + +struct timeval tm; + +#define CALLBACK + +long timeGetTime(); + +#include "psemu_plugin_defs.h" + +typedef struct { + int PlayerNum; + unsigned short PortNum; + char ipAddress[32]; +} Config; + +Config conf; + +void LoadConf(); +void SaveConf(); + +long sock; +char *PadSendData; +char *PadRecvData; +char PadSendSize; +char PadRecvSize; +char PadSize[2]; +int PadCount; +int PadCountMax; +int PadInit; +int Ping; +volatile int WaitCancel; +fd_set rset; +fd_set wset; + +long sockInit(); +long sockShutdown(); +long sockOpen(); +void sockCreateWaitDlg(); +void sockDlgUpdate(); +void sockDestroyWaitDlg(); +int sockPing(); + +int ShowPauseDlg(); +void SysMessage(const char *fmt, ...); + +int SEND(const void *pData, int Size, int Mode); +int RECV(void *pData, int Size, int Mode); + +#endif -- cgit v1.2.3