Browse Source

Test

etomic
jl777 8 years ago
parent
commit
44ae524154
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_ordermatch.c

2
iguana/exchanges/LP_nativeDEX.c

@ -397,7 +397,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit
nn_setsockopt(pullsock,NN_SOL_SOCKET,NN_RCVTIMEO,&timeout,sizeof(timeout)); nn_setsockopt(pullsock,NN_SOL_SOCKET,NN_RCVTIMEO,&timeout,sizeof(timeout));
//maxsize = 2 * 1024 * 1024; //maxsize = 2 * 1024 * 1024;
//nn_setsockopt(pullsock,NN_SOL_SOCKET,NN_RCVBUF,&maxsize,sizeof(maxsize)); //nn_setsockopt(pullsock,NN_SOL_SOCKET,NN_RCVBUF,&maxsize,sizeof(maxsize));
} } else printf("bind to %s error for %s: %s\n",bindaddr,pushaddr,nn_strerror(nn_errno()));
} }
printf("my command address is (%s)\n",pushaddr); printf("my command address is (%s)\n",pushaddr);
if ( IAMLP != 0 ) if ( IAMLP != 0 )

2
iguana/exchanges/LP_ordermatch.c

@ -353,7 +353,7 @@ int32_t LP_nanobind(int32_t pair,char *pairstr,char *myipaddr)
nn_setsockopt(pair,NN_SOL_SOCKET,NN_RCVTIMEO,&timeout,sizeof(timeout)); nn_setsockopt(pair,NN_SOL_SOCKET,NN_RCVTIMEO,&timeout,sizeof(timeout));
printf("nanobind %s to %d\n",pairstr,pair); printf("nanobind %s to %d\n",pairstr,pair);
return(0); return(0);
} } else printf("error binding to %s for %s\n",bindaddr,pairstr);
} }
return(-1); return(-1);
} }

Loading…
Cancel
Save