Added host tcp listeners, optimized pollevent