mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
zmq: use older 3-arg version of setsockopt
This commit is contained in:
parent
395e209745
commit
03ac389022
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ bool ZmqServer::addTCPSocket(std::string address, std::string port)
|
|||
|
||||
rep_socket.reset(new zmq::socket_t(context, ZMQ_REP));
|
||||
|
||||
rep_socket->setsockopt(ZMQ_RCVTIMEO, DEFAULT_RPC_RECV_TIMEOUT_MS);
|
||||
rep_socket->setsockopt(ZMQ_RCVTIMEO, &DEFAULT_RPC_RECV_TIMEOUT_MS, sizeof(DEFAULT_RPC_RECV_TIMEOUT_MS));
|
||||
|
||||
std::string bind_address = addr_prefix + address + std::string(":") + port;
|
||||
rep_socket->bind(bind_address.c_str());
|
||||
|
|
Loading…
Reference in a new issue