diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-13 08:26:16 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-13 08:26:16 +0000 |
| commit | 379a8879f7dae1a9074317c0270e12dd203b32c0 (patch) | |
| tree | 348efb7ecd4f7cbc030f4b5db6683a857f2ae6cf /plugins/dfnet/dfnet.h | |
| parent | d34b4220bde29d7937d927e9d17a50470a36c500 (diff) | |
| download | pcsxr-379a8879f7dae1a9074317c0270e12dd203b32c0.tar.gz | |
Temporarily reverted r64524 until I (or someone else) find the time to sort out the stuff.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64536 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfnet/dfnet.h')
| -rw-r--r-- | plugins/dfnet/dfnet.h | 146 |
1 files changed, 80 insertions, 66 deletions
diff --git a/plugins/dfnet/dfnet.h b/plugins/dfnet/dfnet.h index 4d8ae149..d83cb3bb 100644 --- a/plugins/dfnet/dfnet.h +++ b/plugins/dfnet/dfnet.h @@ -1,66 +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 <sys/time.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <arpa/inet.h> -#include <netdb.h> -#include <unistd.h> - -struct timeval tm; - -long timeGetTime(); - -#include "psemu_plugin_defs.h" - -typedef struct { - int PlayerNum; - unsigned short PortNum; - char ipAddress[32]; -} NetConfig; - -NetConfig 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 +//
+// 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 <sys/time.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <unistd.h>
+
+#ifdef ENABLE_NLS
+#include <libintl.h>
+#include <locale.h>
+#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
|
