Timeline for A simple TCP server
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 30, 2016 at 0:12 | history | edited | Mwr247 | CC BY-SA 3.0 | deleted 1 character in body |
| Mar 30, 2016 at 0:05 | comment | added | Mwr247 | @Frxstrem Whoops, forgot that newline. Only adds 1 byte though thanks to template strings. Regarding IP family: .listen() used to default to IPv4 first, but it seems either by bug or design that this has changed. The submission will still function properly on newer versions of node when IPv6 is disabled on the host machine. | |
| Mar 29, 2016 at 23:57 | history | edited | Mwr247 | CC BY-SA 3.0 | Added newline |
| Mar 29, 2016 at 23:40 | comment | added | Freyja | Also, you don't have a trailing newline, which should increase your score by 2 bytes. | |
| Mar 29, 2016 at 23:36 | comment | added | Freyja | Actually doesn't work if the server's using IPv6 (as, for instance, mine does automatically), since c.remoteAddress would then be ::ffff:127.0.0.1. (I tested on Node v5.9.1). | |
| Mar 29, 2016 at 15:32 | history | edited | Mwr247 | CC BY-SA 3.0 | deleted 3 characters in body |
| Mar 29, 2016 at 15:27 | history | answered | Mwr247 | CC BY-SA 3.0 |