TCPServer is abstract class, so you should make you own derived class, and override single method createClient, wich will return single connection instance. Example:
https://github.com/anakod/Sming/blob/ma ... er.cpp#L33
For request time you can use HTTP request and ask it from Google, please look at MeteoControl example, it's very simple:
https://github.com/anakod/Sming/blob/ma ... n.cpp#L159
This example contains web-syncronized clock with web configuration interface (to adjust timezone).