socket tcp/ip server with poll (and keep alive