MeGaLoDoN
MeGaLoDoN
CC#
Created by RohesKätzchen on 2/6/2024 in #help
Library to send mouse and key Inputs
Try to use async method and call KeyDown then await Task.Delay(2000) and then KeyUp
10 replies
CC#
Created by RohesKätzchen on 2/6/2024 in #help
Library to send mouse and key Inputs
10 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
Binding the client to port 0 solved it. I don't know why it doesnt happen automaticly
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
If I bind it works. But I don't want to bind it, because what if client is behind NAT?. Receive is supposed to work without binding
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
@Lex Li
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
So I am dumb and I was running program in release mod, and thats way break point was not working. I wrapped CheckForMessages in try catch, and I found that I get this exception on the client: "System.InvalidOperationException: You must call the Bind method before performing this operation. at System.Net.Sockets.Socket.ValidateReceiveFromEndpointAndState(EndPoint remoteEndPoint, String remoteEndPointArgumentName) at System.Net.Sockets.Socket.ReceiveFromAsync(Memory`1 buffer, SocketFlags socketFlags, EndPoint remoteEndPoint, CancellationToken cancellationToken) at System.Net.Sockets.UdpClient.ReceiveAsync(CancellationToken cancellationToken) at UdpPeer.CheckForMessages(CancellationToken token) " How to fix it? what if I dont want to bind it to specific port?
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
I just checked with wireshark - server sends messages correctly, just client doesnt receive them
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
What I missed
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
I will add exception handling later, I just want to get it work now
14 replies
CC#
Created by MeGaLoDoN on 2/3/2024 in #help
I need help debugging c# event-based reliable UDP implementation.
I don't think I have any exceptions. I tried putting a lot of try catch before and putting break points in catch, but it never entered it. It just doesn't receive messages
14 replies