mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
linux client socket fix
This commit is contained in:
parent
8ff721efa7
commit
82079f43da
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user