Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    \$\begingroup\$ Is it allowed to use inetd/xinetd or similar? \$\endgroup\$ Commented Mar 28, 2016 at 18:17
  • 94
    \$\begingroup\$ I like this, since it's a golfing challenge that golfing languages are unlikely to be very good at. \$\endgroup\$ Commented Mar 28, 2016 at 18:54
  • 9
    \$\begingroup\$ Not only is it amazing that a TCP server is apparently a very easy program to write, I am thoroughly floored at the fact that it's getting golfed for fun. I'll just go back to struggling with FizzBuzz like an imbecile. \$\endgroup\$ Commented Mar 29, 2016 at 19:50
  • 18
    \$\begingroup\$ @isaacg It's only time before someone finds the TCP server built-in in Mathematica \$\endgroup\$ Commented Mar 29, 2016 at 22:19
  • 3
    \$\begingroup\$ @MonkeyZeus To be fair, you will not see any good TCP server here. Making a reliable, scalable TCP server that handles all the intricacies of TCP (and your application protocol) well is a bit harder :D Though it certainly helps that the protocol is exceedingly simple - you don't even need to read the stream, something that I've seen broken in too many TCP servers to count :D \$\endgroup\$ Commented Mar 30, 2016 at 9:11