basic persistent socket server