Cleanup tlib

This commit is contained in:
Baptiste Wicht 2016-09-18 21:34:55 +02:00
parent 90b389c1ea
commit 8af2f9f7cc
2 changed files with 0 additions and 5 deletions

View File

@ -119,7 +119,6 @@ private:
socket_protocol protocol; ///< The socket protocol
size_t fd; ///< The socket file descriptor
size_t error_code; ///< The error code
size_t local_port; ///< The local port
bool _connected; ///< Connection flag
bool _bound; ///< Bind flag
};

View File

@ -215,8 +215,6 @@ tlib::socket::socket(socket_domain domain, socket_type type, socket_protocol pro
} else {
error_code = open_status.error();
}
local_port = 0;
}
tlib::socket::~socket() {
@ -276,7 +274,6 @@ void tlib::socket::client_bind(tlib::ip::address server) {
auto status = tlib::client_bind(fd, server);
if (!status) {
_bound = false;
local_port = *status;
} else {
error_code = status.error();
}
@ -308,7 +305,6 @@ void tlib::socket::connect(tlib::ip::address server, size_t port) {
auto status = tlib::connect(fd, server, port);
if (status) {
_connected = true;
local_port = *status;
} else {
error_code = status.error();
}