> On March 3, 2015, 6:39 p.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp, lines 115-126
> > <https://reviews.apache.org/r/31471/diff/4/?file=882869#file882869line115>
> >
> >     I am wondering if this function is necessary given that we implemented 
> > `==` operator. For example:
> >     
> >     ```
> >     IP ip1 = IP::parse("0.0.0.0");
> >     if (ip1 == IP::ANY(AF_INET)) {
> >       // XXX
> >     }
> >     
> >     IP ip2 = IP::parse("127.0.0.1");
> >     if (ip2 == IP::LOOPBACK(AF_INET)) {
> >       // XXX
> >     }
> >     ```
> 
> Evelina Dumitrescu wrote:
>     it's more clear to use isInaddrAny and isLoopback functions

Since you'll have IP::LOOPBACK(AF_INET) anyway, why add an additional function?


- Jie


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31471/#review74987
-----------------------------------------------------------


On March 3, 2015, 11:27 a.m., Evelina Dumitrescu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31471/
> -----------------------------------------------------------
> 
> (Updated March 3, 2015, 11:27 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Dominic Hamon, Jie Yu, Joris Van 
> Remoortere, and Niklas Nielsen.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> see summary
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp 
> 0cd7cb526a3a2514b3b54552253dfa8919e948d0 
>   3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp 
> 9635bbc6f7dae1d75a780069fcc60fb706221053 
>   3rdparty/libprocess/3rdparty/stout/tests/ip_tests.cpp 
> fb98317a68986cb1228c584a8cd83b07737895a8 
> 
> Diff: https://reviews.apache.org/r/31471/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Evelina Dumitrescu
> 
>

Reply via email to