diff --git a/profiler_gui/main_window.cpp b/profiler_gui/main_window.cpp index e29f0e7..aa43502 100644 --- a/profiler_gui/main_window.cpp +++ b/profiler_gui/main_window.cpp @@ -121,7 +121,7 @@ EasyMainWindow::EasyMainWindow() : Parent(), m_treeWidget(nullptr), m_graphicsVi m_hostString->setInputMask("000.000.000.000;"); m_hostString->setValidator(®Validator); m_hostString->setText("127.0.0.1"); - m_hostString->setText("192.224.4.109"); + //m_hostString->setText("192.224.4.109"); fileToolBar->addWidget(m_hostString); diff --git a/src/easy_socket.cpp b/src/easy_socket.cpp index 3c68dc3..75fcc27 100644 --- a/src/easy_socket.cpp +++ b/src/easy_socket.cpp @@ -96,8 +96,11 @@ int EasySocket::connect() return -1; //fprintf(stderr,"ERROR, no such host\n"); } - - return ::connect(m_socket,(struct sockaddr *) &serv_addr,sizeof(serv_addr)); + int res = ::connect(m_socket,(struct sockaddr *) &serv_addr,sizeof(serv_addr)); + if(res == 0){ + m_replySocket = m_socket; + } + return res; } #else