mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 00:09:11 +01:00
Use SendToAsync in another place
This commit is contained in:
parent
57af817c00
commit
c3b4190b02
@ -173,7 +173,11 @@ namespace DS4Windows
|
|||||||
Array.Copy(usefulData, 0, packetData, currIdx, usefulData.Length);
|
Array.Copy(usefulData, 0, packetData, currIdx, usefulData.Length);
|
||||||
FinishPacket(packetData);
|
FinishPacket(packetData);
|
||||||
|
|
||||||
try { udpSock.SendTo(packetData, clientEP); }
|
//try { udpSock.SendTo(packetData, clientEP); }
|
||||||
|
SocketAsyncEventArgs args = new SocketAsyncEventArgs();
|
||||||
|
args.RemoteEndPoint = clientEP;
|
||||||
|
args.SetBuffer(packetData, 0, packetData.Length);
|
||||||
|
try { udpSock.SendToAsync(args); }
|
||||||
catch (Exception e) { }
|
catch (Exception e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user