socket server using fok