Browse Source

Test

etomic
jl777 8 years ago
parent
commit
abd3054fb6
  1. 4
      iguana/exchanges/LP_nativeDEX.c

4
iguana/exchanges/LP_nativeDEX.c

@ -401,7 +401,11 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit
{
timeout = 100;
nn_setsockopt(pullsock,NN_SOL_SOCKET,NN_RCVTIMEO,&timeout,sizeof(timeout));
#ifdef __APPLE__
nanomsg_tcpname(bindaddr,"eth0",mypullport);
#else
nanomsg_tcpname(bindaddr,myipaddr,mypullport);
#endif
if ( nn_bind(pullsock,bindaddr) >= 0 )
{
maxsize = 2 * 1024 * 1024;

Loading…
Cancel
Save