mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-17 00:16:20 +01:00
parent
76ccb44a32
commit
dfcc3250cf
@ -183,9 +183,9 @@ namespace DS4Windows
|
|||||||
|
|
||||||
//try { udpSock.SendTo(packetData, clientEP); }
|
//try { udpSock.SendTo(packetData, clientEP); }
|
||||||
SocketAsyncEventArgs args = argsList[listInd];
|
SocketAsyncEventArgs args = argsList[listInd];
|
||||||
|
listInd = ++listInd % 20;
|
||||||
args.RemoteEndPoint = clientEP;
|
args.RemoteEndPoint = clientEP;
|
||||||
args.SetBuffer(packetData, 0, packetData.Length);
|
args.SetBuffer(packetData, 0, packetData.Length);
|
||||||
listInd = ++listInd % 20;
|
|
||||||
try {
|
try {
|
||||||
udpSock.SendToAsync(args);
|
udpSock.SendToAsync(args);
|
||||||
}
|
}
|
||||||
@ -643,9 +643,9 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
//try { udpSock.SendTo(outputData, cl); }
|
//try { udpSock.SendTo(outputData, cl); }
|
||||||
SocketAsyncEventArgs args = argsList[listInd];
|
SocketAsyncEventArgs args = argsList[listInd];
|
||||||
|
listInd = ++listInd % 20;
|
||||||
args.RemoteEndPoint = cl;
|
args.RemoteEndPoint = cl;
|
||||||
args.SetBuffer(outputData, 0, outputData.Length);
|
args.SetBuffer(outputData, 0, outputData.Length);
|
||||||
listInd = ++listInd % 20;
|
|
||||||
try {
|
try {
|
||||||
udpSock.SendToAsync(args);
|
udpSock.SendToAsync(args);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user