|
|
@ -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; |
|
|
|