functional skel for a basic TCP listener