s4:lib/socket Add function to set a port on the socket address