Reformat code

This commit is contained in:
Baptiste Wicht 2016-09-11 20:08:41 +02:00
parent b89bc2770f
commit 0567908a05
3 changed files with 77 additions and 75 deletions

View File

@ -4,6 +4,7 @@
// (See accompanying file LICENSE or copy at // (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT) // http://www.opensource.org/licenses/MIT)
//======================================================================= //=======================================================================
#include "tlib/net.hpp" #include "tlib/net.hpp"
#include "tlib/malloc.hpp" #include "tlib/malloc.hpp"
@ -129,7 +130,8 @@ void tlib::release_packet(packet& packet){
} }
} }
tlib::socket::socket(socket_domain domain, socket_type type, socket_protocol protocol) : domain(domain), type(type), protocol(protocol), fd(0), error_code(0) { tlib::socket::socket(socket_domain domain, socket_type type, socket_protocol protocol)
: domain(domain), type(type), protocol(protocol), fd(0), error_code(0) {
auto open_status = tlib::socket_open(domain, type, protocol); auto open_status = tlib::socket_open(domain, type, protocol);
if (open_status.valid()) { if (open_status.valid()) {