Rewrite daytime client int c++.
[Ref] (http://alas.matf.bg.ac.rs/manuals/lspe/snode=62.html)