> On Dec. 4, 2014, 8:31 p.m., Dominic Hamon wrote: > > 3rdparty/libprocess/include/process/socket.hpp, line 66 > > <https://reviews.apache.org/r/28716/diff/1/?file=782735#file782735line66> > > > > there's no Error case here so this can be an int return. Alternatively, > > check the error code and return an ErrnoError.
I returned ErrnoError if the return code is < 0. > On Dec. 4, 2014, 8:31 p.m., Dominic Hamon wrote: > > 3rdparty/libprocess/include/process/socket.hpp, line 50 > > <https://reviews.apache.org/r/28716/diff/1/?file=782735#file782735line50> > > > > do you think it's worth checking the return and returning an Error > > directly? Done that, thanks. > On Dec. 4, 2014, 8:31 p.m., Dominic Hamon wrote: > > 3rdparty/libprocess/src/net.hpp, line 73 > > <https://reviews.apache.org/r/28716/diff/1/?file=782738#file782738line73> > > > > if process::bind returns a Try<int> you can check IsError instead and > > throw with the Error string as a message. Made bind return ErrnoError and checked with isError(). - Evelina ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28716/#review63899 ----------------------------------------------------------- On Dec. 4, 2014, 11:19 p.m., Evelina Dumitrescu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28716/ > ----------------------------------------------------------- > > (Updated Dec. 4, 2014, 11:19 p.m.) > > > Review request for mesos and Dominic Hamon. > > > Repository: mesos-git > > > Description > ------- > > Created accept, bind, connect and getsockname wrappers in socket.hpp for > different protocol families > > > Diffs > ----- > > 3rdparty/libprocess/include/process/socket.hpp > ab080c154095029c4a01d189a5fd8a178ba6c92e > 3rdparty/libprocess/src/http.cpp b00f33339366f5c06b6f20e38c5ae0c23b8a9358 > 3rdparty/libprocess/src/httpd.cpp 902ba89b18c5d7edf68ca9d17c55e5727529f96e > 3rdparty/libprocess/src/net.hpp 7bf6085e1bd9ffa0e42a5da9c3567521ff4c0713 > 3rdparty/libprocess/src/process.cpp > 4db7d56af710577e08a9d7dbeb92a1f01559401f > 3rdparty/libprocess/src/tests/http_tests.cpp > a90e65f77904da0a45e1cc0cc9889ae69354a1a5 > 3rdparty/libprocess/src/tests/process_tests.cpp > dec62e88ec993433e1a0777593bb2657b43636dc > > Diff: https://reviews.apache.org/r/28716/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Evelina Dumitrescu > >
