Add printf listen server code