cned
How to tell if a variable is a reference or value data type
I think in/out on references will essentially make the double refs, which will likely require two memory lookups to resolve any value. I think that 99.9%of the time, “in” is incorrect and unnecessary (unless you have a massive value type/struct and copying it is more expensive that the addition memory hit)
27 replies
[RESOLVED✅] StackPanel and CornerRadius of Border that contained it
You probably need to add a border and rounded corners to the top bar too. I don't think the "CornerRadius" modifies the clip region. (If it did, the drop shadows would also likely get cliped away by the outer box). You can specify all 4 corners, so you can only round the top corners of the blue area.
7 replies
Preventing ddos attacks in the game
All you had to do was add an if check in the old OnReceive method... This code is wildly different and still doesn't solve the problem. Once in the HandleClient loop, nothing ever exits it. I think you might want to start with a smaller project if you are just learning C#.
121 replies
Preventing ddos attacks in the game
The code in tcp seems fine, other than the persisten connection problem. The udo client has no protection, and does the same logic, and that’s harder to block in code since it’s a connection less protocol. The best bet is to hand this outside code, at a firewall level, since that will be more reliable and you wont have to waste code processing the connection at all.
121 replies
Preventing ddos attacks in the game
My first suggestion would be to go through the process of finding out what's going on, either by logging more or debugging. If you find yourself with multiple problems. Write them down so you can focus on one at a time. Once you know what's happening, you can come back and ask for help on a specific problem. 🙂
121 replies