a simple blocking socket