implement ROS_IP=localhost behavior for roscpp, and for outbound rospy connections

The wiki doc for ROS_IP:  http://wiki.ros.org/ROS/EnvironmentVariables    says that setting ROS_IP=localhost will "prevent remote components from being able to talk to your local component." This can be useful in some settings. However, this behavior was previously only implemented for inbound rospy topic connections and services. This pull request implements it for inbound and outbound roscpp connections, and for outbound rospy connections.
done


On Mon, Jun 30, 2014 at 2:25 PM, Dirk Thomas <notifications@github.com>
wrote:

> In clients/roscpp/include/ros/transport/transport.h:
>
> >  };
> >
> >  }
> >
> >  #endif // ROSCPP_TRANSPORT_H
> > +
>
> The file already has a trailing newline. Please remove the additional one.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ros/ros_comm/pull/452/files#r14376694>.
>