summaryrefslogtreecommitdiff
path: root/plugins/dfnet/dfnet.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-16 00:36:51 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-16 00:36:51 +0100
commit788fb20656c8450a3f2da8b3f8b1905242103193 (patch)
treeae6e1a2c9e7da0fe72b070d2db580adf26e410af /plugins/dfnet/dfnet.c
parent8349bf45e9b19d83506e1bb52f2053a7976922e5 (diff)
downloadpcsxr-sio.tar.gz
WIP TCP/SIOsio
Diffstat (limited to 'plugins/dfnet/dfnet.c')
-rw-r--r--plugins/dfnet/dfnet.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/plugins/dfnet/dfnet.c b/plugins/dfnet/dfnet.c
index fcd438b5..205ae307 100644
--- a/plugins/dfnet/dfnet.c
+++ b/plugins/dfnet/dfnet.c
@@ -16,6 +16,22 @@ extern int errno;
#include "dfnet.h"
+struct timeval tm;
+Config conf;
+int 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;
+
const unsigned char version = 2; // NET library v2
const unsigned char revision = 0;
const unsigned char build = 3; // increase that with each version
@@ -125,8 +141,8 @@ long CALLBACK NETopen(unsigned long *gpuDisp) {
if (bind(listen_sock,(struct sockaddr *) &address, sizeof(address)) == -1)
return -1;
- if (listen(listen_sock, 1) != 0)
- return -1;
+ if (listen(listen_sock, 1) != 0)
+ return -1;
sock = -1;