Beginning of pair TCP server (pthreads)