remove usage of deprecated method
This commit is contained in:
parent
289ac1d5ca
commit
53a21f8e95
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ NetworkThread::NetworkThread(QObject *parent) :
|
|||
void NetworkThread::connect() {
|
||||
socket = new zmq::socket_t(context, zmq::socket_type::pair);
|
||||
int linger = 0;
|
||||
socket->setsockopt(ZMQ_LINGER, &linger, sizeof (linger));
|
||||
socket->set(zmq::sockopt::linger, linger);
|
||||
try {
|
||||
socket->bind("tcp://127.0.0.1:12345");
|
||||
} catch (zmq::error_t err) {
|
||||
|
|
Loading…
Reference in a new issue