"A very simple TCP test command. It will listen on a port and print out the line of text received. '\n' terminates connection. BUG: As of 0.9.2 SDK it's impossible to terminate a running TCP listener. Say thanks to espressif! May be 0.9.3 will fix it."
Worth knowing that's a bug in the older SDK! Espressif have a lot to answer for!