Timeline for A simple TCP server
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:39 | history | edited | CommunityBot | replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/ | |
| Mar 31, 2016 at 12:52 | history | edited | AdmBorkBork | CC BY-SA 3.0 | Saved a couple bytes, added for loop |
| Mar 29, 2016 at 23:04 | comment | added | Nacht | haha i love your turning the periods into plus signs and iexing it, maybe that's smaller than my measure | |
| Mar 29, 2016 at 22:55 | comment | added | Nacht | @TimmyD, ive given you some competition :) | |
| Mar 29, 2016 at 13:28 | history | edited | AdmBorkBork | CC BY-SA 3.0 | Saved 11 bytes, added explanation |
| Mar 28, 2016 at 17:02 | comment | added | AdmBorkBork | @Matt Indeed, thanks for that! I keep forgetting that the System can be implied. | |
| Mar 28, 2016 at 17:01 | history | edited | AdmBorkBork | CC BY-SA 3.0 | Saved 35 bytes thanks to Matt |
| Mar 28, 2016 at 16:21 | comment | added | Matt | In testing I could not get this to work, likely due to firewall issues that I don't feel like fixing so I cannot be sure but..... I think you can drop "System" from most if not all the type casts you have there ie: [Net.ipaddress]::Any works. | |
| Mar 28, 2016 at 15:40 | comment | added | AdmBorkBork | @tac Yes, PowerShell does have garbage collection thanks to the underlying .NET system. But, depending on how you're calling or leveraging this script, you can run into bugs like this one leaking memory in the pipeline. The above code also isn't thread-safe, and so can run into GC issues with that, since we're not explicitly closing the socket. | |
| Mar 28, 2016 at 15:28 | comment | added | cat | Oh, isn't PS GC'd? Or does the GC do refcounting and not scope-analysis? | |
| Mar 28, 2016 at 15:27 | comment | added | AdmBorkBork | @tac Yeah, there's a whole slew of .close() and .dispose() methods we're not calling here that would cause people on Code Review to have a fit. | |
| Mar 28, 2016 at 15:25 | comment | added | cat | "Leaks memory and system handles like crazy" What, do you have to free() them after? delete[], maybe? :P | |
| Mar 28, 2016 at 14:23 | history | answered | AdmBorkBork | CC BY-SA 3.0 |