socket: Make sure that symbol definitions are const.
socket: Tighten up int-to-str conversion.