only allow ROS_HOSTNAME (not ROS_IP) to be set to localhost in rospy
const correctness for Transport() functions