Loading adapter/src/Helper/Socket.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ Socket::~Socket() { int Socket::Send(const char *data, const int length) throw (std::string) { int nb_sent = send(m_socket, data, length, 0); std::clog << "Socket::Send: " << nb_sent << std::endl; //std::clog << "Socket::Send: " << nb_sent << std::endl; if (nb_sent == -1) { std::string err_msg("Unable to send data"); Loading @@ -84,7 +84,7 @@ int Socket::Receive(const ssize_t buf_len, char * buf) throw (std::string) { SocketClient::SocketClient(const std::string &host, const int port) throw (std::string) :Socket() { std::clog << "SocketClient::SocketClient: " << host << " - " << port << std::endl; //std::clog << "SocketClient::SocketClient: " << host << " - " << port << std::endl; std::string err_msg; sockaddr_in sa; Loading Loading
adapter/src/Helper/Socket.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ Socket::~Socket() { int Socket::Send(const char *data, const int length) throw (std::string) { int nb_sent = send(m_socket, data, length, 0); std::clog << "Socket::Send: " << nb_sent << std::endl; //std::clog << "Socket::Send: " << nb_sent << std::endl; if (nb_sent == -1) { std::string err_msg("Unable to send data"); Loading @@ -84,7 +84,7 @@ int Socket::Receive(const ssize_t buf_len, char * buf) throw (std::string) { SocketClient::SocketClient(const std::string &host, const int port) throw (std::string) :Socket() { std::clog << "SocketClient::SocketClient: " << host << " - " << port << std::endl; //std::clog << "SocketClient::SocketClient: " << host << " - " << port << std::endl; std::string err_msg; sockaddr_in sa; Loading